WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Irregular / Missing border (https://www.wowinterface.com/forums/showthread.php?t=58172)

Lybrial 08-24-20 10:10 AM

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));


All times are GMT -6. The time now is 11:56 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI