XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 2:09 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Align Ordering Problem
PostPosted: June 4th, 2013, 8:22 pm 
Offline
User avatar

Joined: August 2nd, 2012, 12:43 am
Posts: 26
I'm making a widget with several sections, each grouped in a layer, that can be toggled on and off separately. I'm using the align section set to MostTop or Top to make them stay as far toward the top of the widget as possible. However, the order of the layers seems to change randomly. How does the alignment with MostTop and Top choose which layer will be above another? Is there any way to define an order that it will keep? I've tried different combinations of MostTop and Top without success.

In case I didn't explain that very well, I attached a little widget to demonstrate my problem. Press the buttons to toggle different layers on and off, and notice how sometimes it doesn't put them back in order.

Thanks.


Attachments:
AlignTest.XWidgetPkg [6.6 KiB]
Downloaded 211 times

_________________
deviantArt profile

My Widgets:
Game Specials v1.1
Top
 Profile  
 
PostPosted: June 4th, 2013, 9:00 pm 
Offline
User avatar

Joined: June 10th, 2012, 5:57 am
Posts: 313
Hi,this is a bug of XWidget's align function, components would be out of order sometimes.
I use slidepanel to achieve the same effect.


Attachments:
AlignTest.XWidgetPkg [6.67 KiB]
Downloaded 202 times
Top
 Profile  
 
PostPosted: June 4th, 2013, 9:11 pm 
Offline
User avatar

Joined: August 2nd, 2012, 12:43 am
Posts: 26
Thanks very much for the quick reply and example.
Ah, I see, interesting workaround. A little messy but it definitely works. I guess I'll use that until the bug is fixed.

Thanks again!

_________________
deviantArt profile

My Widgets:
Game Specials v1.1


Top
 Profile  
 
PostPosted: June 4th, 2013, 10:52 pm 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
qiancang wrote:
Hi,this is a bug of XWidget's align function, components would be out of order sometimes.
I use slidepanel to achieve the same effect.


This is the bug of the designer, not xwidget.
Manually reorder the contents of the main.xul with a text editor. The last item is rendered first. Controls are placed in bottom to top order they are declared.

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
PostPosted: June 5th, 2013, 7:56 am 
Offline
User avatar

Joined: August 2nd, 2012, 12:43 am
Posts: 26
XWDesigner already writes layers in the .xul file in reverse order, and it's showing the weird behavior. If I reverse it in the .xul file manually, it just starts in random order, and wants to put them in reverse order when you toggle them repeatedly, and still shows some random behavior. That sure sounds like a bug in XWidget itself to me.

_________________
deviantArt profile

My Widgets:
Game Specials v1.1


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 41 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group