You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DIfferent widgets under the covers (eg. QTextField vs. QLabels) so Qt has different default rules about how they can expand. Try playing with resizable=False or perhaps if it fits the UX, just use the non-readonly version, but have enabled_when='False'
Note that you will get different layout behaviour also if you make the textbox style='custom', which I think will be closer to the readonly style. Based on that, its not clear what's "correct" and what behaviour should be guaranteed.
TraitsUI is not designed for pixel-perfect layout.
The following
Results in this
However, if I remove the readonly, the result is more compact
The text was updated successfully, but these errors were encountered: