Combo View - small improvement

A forum for research and development of the user interface of FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
LordMadJack
Posts: 88
Joined: Tue Sep 04, 2018 3:41 pm

Combo View - small improvement

Post by LordMadJack »

In the Combo View, under the Model tab, would it be possible to have the right edge of the Description column attached to the right edge of the pane :
It would be cool to see the whole Description field by expanding the combo view
Attachments
Screen1.png
Screen1.png (50 KiB) Viewed 1248 times
Screen2.png
Screen2.png (46.4 KiB) Viewed 1248 times
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Combo View - small improvement

Post by openBrain »

The current behavior is on purpose : https://github.com/FreeCAD/FreeCAD/blob ... e.cpp#L529
This is so that the 'Description' keeps it's width when you unfold the document tree, that "pushes" the Description column to the right.
Would you like this to be an option where yo can choose between the 2 behaviors (current and wanted) ?
User avatar
LordMadJack
Posts: 88
Joined: Tue Sep 04, 2018 3:41 pm

Re: Combo View - small improvement

Post by LordMadJack »

Thanks ! :)
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Combo View - small improvement

Post by openBrain »

Not so much details on my previous post. :)
If/when the PR is merged, you have to create a boolean parameter in "Preferences/TreeView" named "TreeViewStretchDescription" with value set to "true" to get the behavior you want (Parameter editor).
This is a minimal implementation. It can later be made a preference, and eventually above behavior be made the default one. ;)
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Combo View - small improvement

Post by openBrain »

LordMadJack wrote: Thu Apr 14, 2022 1:19 pm Thanks ! :)
Merged as rev 28703.
Note to myself : documentation
openBrain
Veteran
Posts: 9041
Joined: Fri Nov 09, 2018 5:38 pm
Contact:

Re: Combo View - small improvement

Post by openBrain »

Documented in Fine-tuning
Post Reply