Thread Tools Display Modes
08-24-20, 10:10 AM   #1
Lybrial
A Flamescale Wyrmkin
AddOn Compiler - Click to view compilations
Join Date: Jan 2010
Posts: 120
Irregular / Missing border

Hi,

I have 5 x 10 frames. On each frame I do the following:

Lua Code:
  1. local backdrop = {
  2.     bgFile = LSM:Fetch("background", "solid"),
  3.     edgeFile = LSM:Fetch("border", "solid"),
  4.     tile = false,
  5.     tileSize = 0,
  6.     edgeSize = 1,
  7.     insets = {
  8.         left = 0,
  9.         right = 0,
  10.         top = 0,
  11.         bottom = 0
  12.     }
  13. }
  14.  
  15. frame:SetBackdrop(backdrop)

The Problem: The first frame in each of the 5 rows misses the right border like shown in this image:



All other frames are showing the borders correctly.

What is the problem here?

Some more specific stuff:

When I say the border is 1, it is not really 1. It is calculated like the following:

Lua Code:
  1. local bestPixelSize = max(0.4, min(1.15, MATH:Round((768 / SCREEN.info.height), 5)))
  2. local pixel = 1;
  3. local ratio = (768 / SCREEN.info.height);
  4. local border = ((pixel / bestPixelSize) - ((pixel - ratio) / bestPixelSize));

Last edited by Lybrial : 08-24-20 at 10:35 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Irregular / Missing border

Thread Tools
Display Modes

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