Jon Abbott

Just an observation, but... Has anyone else noticed that Gadgets move of their own accord when Sidebar loads

For instance, if Sidebar is closed by DEP, Gadgets randomly creep to the left when it restarts.

Then there's the order on the Sidebar itself. If you shutdown/restart or exit and reload Sidebar, the attached Gadget order changes occasionally.


Re: Sidebar Gadget Development Gadget creep

Tom from cener.co.uk

nope but i have had them overlap each other once. think it was my code



Re: Sidebar Gadget Development Gadget creep

Jonathan Abbott

I forgot that one, thanks for reminding me. If they overlap, exiting and reloading Sidebar sometimes puts them back to their original positions.




Re: Sidebar Gadget Development Gadget creep

Bruce Williams

There is a known bug where floating gadgets creep left like one pixel when you stop and restart sidebar. Mostly unnoticable, but it was pretty odd when I ran a stress test overnight that just repeatedly restarted the sidebar, and the next morning all my gadgets were left-aligned on the screen. I don't think that one is a very big problem, although I welcome details if you disagree.

The other issue, with gadgets rearranging themselves, sounds like a bigger problem - if you have a consistent repro for it I would love to know about it.





Re: Sidebar Gadget Development Gadget creep

Jonathan Abbott

Glad you're seeing it too! I thought I was going mad

Run your stress test with all the gadgets docked, you should eventually see them re-arrange. It seems to do it more frequently if Sidebar is killed by DEP - not sure if that is the cause, I'm sure I had them re-arrange yesterday by closing and re-opening Sidebar.




Re: Sidebar Gadget Development Gadget creep

Jonathan Abbott

 Bruce Williams wrote:

There is a known bug where floating gadgets creep left like one pixel when you stop and restart sidebar. Mostly unnoticable, but it was pretty odd when I ran a stress test overnight that just repeatedly restarted the sidebar, and the next morning all my gadgets were left-aligned on the screen. I don't think that one is a very big problem, although I welcome details if you disagree.

The other issue, with gadgets rearranging themselves, sounds like a bigger problem - if you have a consistent repro for it I would love to know about it.


This has been bugging me, as it's very noticable when you're developing! So I've done some digging.

All detatched gadgets shift by 6 pixels when you Exit Sidebar. If you kill the task, this doesn't happen, so there's a bug in the exit code where it saves the position back to the INI file. 

When Sidebar loads, if the Gadget left or right is offscreen.  Sidebar shift it so that its completely on screen.  Not sure if you'd class that as a bug or not, I would, as the gadget moves from the position the user put it in.

Due to this, Gadgets end up bifuricating between 0 and -6!

Strangely 6 is also the amount of pixels the three mini icons are out by when the Sidebar loads. What's so special about the number 6




Re: Sidebar Gadget Development Gadget creep

Bruce Williams

I'm not sure this is the same issue - I'm pretty sure I didn't see a six-pixel shift in my test, that would have been much faster and more noticable drift. Thanks for the follow-up, and I will look into it as well.



Re: Sidebar Gadget Development Gadget creep

Jonathan Abbott

I've put repro steps on the Known bugs in Sidebar page. See bug#10 and bug#18.




Re: Sidebar Gadget Development Gadget creep

Menthos

Just a thought, would the number of pixels 'drifted' bear any relation to the screen resolution Just wondering whether the sidebar scales dynamically to the screen and could therefore have varying drift between setups.