Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-06-10, 08:32 AM   #1
Tarumi
A Deviate Faerie Dragon
 
Tarumi's Avatar
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 17
Width of Screen

I'm creating my own toolbar that displays information across the top of my screen (like all the data brokers do). However, I can't get it to have my bar go across the entire top of my screen. It stops about 90% of the way across the screen.

This is what I have for the main frame:

local f = CreateFrame("FRAME", "Carrie", UIParent)
f:SetWidth(GetScreenWidth() * UIParent:GetEffectiveScale())
f:SetHeight(15)

I've also tried it with the * UIParent:GetEffectiveScale() to no avail.

Thanks!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Width of Screen


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off