07-14-2021, 07:19 AM
I think I found a promising way.
If we get the x coordinate of the top of the table we could subtract that to 100vh.
the h_scroll load behavior would be:
It seems to work quite well for me, I'm not sure where the "41" comes from I found it by trial.
Listy could you test it on your layouts?
The new test verision:
https://github.com/diegocortassa/TACTIC/...out_wdg.py
If we get the x coordinate of the top of the table we could subtract that to 100vh.
the h_scroll load behavior would be:
Code:
var parent = bvr.src_el.getParent(".spt_tab_content_top");
var is_hidden_row = bvr.src_el.getParent(".spt_hidden_content");
if (parent && !is_hidden_row) {
var offsets = bvr.src_el.getBoundingClientRect();
var top = offsets.top + 41;
bvr.src_el.setStyle("height", "calc(100vh - " + top + "px)");
}
It seems to work quite well for me, I'm not sure where the "41" comes from I found it by trial.
Listy could you test it on your layouts?
The new test verision:
https://github.com/diegocortassa/TACTIC/...out_wdg.py