View Single Post
08-15-11, 02:29 PM   #1
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 325
Panel Stretching Full Width of screen

Hello again,
I'm trying to get my custom Datapanel stretch from sreenedge to screenedge. Below are the screenshots & code for what im using.

1280x800



1280x1024


Now here is the code to get the Width of the datapanel:
Code:
DataBorderPanel:SetWidth(GetScreenWidth() * UIParent:GetEffectiveScale())
As you can see by the screen shots above the 1280x800 stretches almost all the way across the screen but my native resolution 1280x1024 does not.

is there a better way to make this happen?

Thanks for any help with this issue.

Coke
  Reply With Quote