TACTIC Open Source
How to SNAP top and down menu elements? - Printable Version

+- TACTIC Open Source (http://forum.southpawtech.com)
+-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3)
+--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4)
+--- Thread: How to SNAP top and down menu elements? (/showthread.php?tid=228)

Pages: 1 2 3 4


How to SNAP top and down menu elements? - listy - 07-12-2021

HI!
There is a problem using long lists with wide tables, when user want to save something in a big list he forced to scroll down, then change bottom scrollbars to right. Change, and then go back to top to save.

Is there a way to snap top and bottoms of the table, so it wont scroll out of screen?

Little video i made to illustrate problem.
Also notice how long it took to switch between tabs.

[Image: Buggy_9IxKF1Sy5n_v001.gif]

Bottom of the browser is cutted of. So for the Assets tab i even can't reach bottom at all


RE: How to SNAP top and down menu elements? - Diego - 07-12-2021

That was disabled some time ago.
I made a change to re-enable the column but never didi a PR because I'm not sure why it was disabled.
Give me a moment I'll make a PR so you can use it, and, in case, Remko can merge it.


RE: How to SNAP top and down menu elements? - listy - 07-12-2021

Thanks! That would be really great!


RE: How to SNAP top and down menu elements? - Nachogor - 07-12-2021

Yes, double scroll bars sometimes becomes a headache.


RE: How to SNAP top and down menu elements? - Diego - 07-12-2021

I added a branch to my git repo.
Check https://github.com/diegocortassa/TACTIC/tree/4.8-sticky-headers

the only changed file is https://github.com/diegocortassa/TACTIC/blob/4.8-sticky-headers/src/tactic/ui/panel/table_layout_wdg.py

I think this will worsen the "double scrollbar" problem unless you take special care of setting fixed heights for all you views
let me know how it work for you.


RE: How to SNAP top and down menu elements? - listy - 07-12-2021

(07-12-2021, 03:50 PM)Diego Wrote: I added a branch to my git repo.
Check https://github.com/diegocortassa/TACTIC/tree/4.8-sticky-headers

the only changed file is https://github.com/diegocortassa/TACTIC/blob/4.8-sticky-headers/src/tactic/ui/panel/table_layout_wdg.py

I think this will worsen the "double scrollbar" problem unless you take special care of setting fixed heights for all you views
let me know how it work for you.
Tested it, and it throws errors:
Unexpected end of input


RE: How to SNAP top and down menu elements? - Diego - 07-12-2021

Could you post the full stack trace?


RE: How to SNAP top and down menu elements? - listy - 07-12-2021

(07-12-2021, 04:21 PM)Diego Wrote: Could you post the full stack trace?
it is not writing the stack, unfortunately.


RE: How to SNAP top and down menu elements? - Diego - 07-12-2021

Found the problem I deleted a debug print and got a "}" with it :-)
Just did a commit on 4.8-sticky-headers try again!


RE: How to SNAP top and down menu elements? - listy - 07-12-2021

Hi!
Yes it is working good. Doing exactly what we needed.
But.
It seems that this fix affecting Hidden Row widget, by making it bigger. Even Small table could take full screen when we expand it.

Thanks for the fix!