Thread: Offset inconsistencies bug
-
January 1st, 2020, 09:22 #1
Offset inconsistencies bug
There's a visual difference between these two pieces of code, although I think that the second code would just be shorthand for the first:
Code:<backcolor>#999999</backcolor> <anchored position="insideleft"> <left offset="15" /> <right offset="45" /> <top offset="30" /> <bottom offset="30" /> </anchored>
Code:<backcolor>#999999</backcolor> <anchored position="insideleft" offset="15,30,45,30" />
The second example will anchor the left (and likely right) side to its parent, but the top and bottom will then expand the background between that text and the control, to something looking close to 30.
There does not seem to be a position that acts like "over", that still makes the background color stay within the control. Instead "over" makes the background overflow in all directions, like it does in the second example.Last edited by MooCow; January 2nd, 2020 at 01:00. Reason: Removed error. I was looking at the wrong line.
-
January 1st, 2020, 20:07 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
The anchored tag with a position of “insideleft” only supports two numbers in the offset attribute to create left and top anchors.
There is no position option which allows you to set all four anchors independently. Just define the anchors the first way.
Regards,
JPG
-
January 1st, 2020, 20:10 #3
Archangel
- Join Date
- Apr 2008
- Location
- Virginia Beach
- Posts
- 3,096
And remember if you use attributes rather than tags you cannot use lua tables to read the values.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks