CGCookie / addon_common

GNU General Public License v3.0
41 stars 7 forks source link

UI_WrappedLabel minsize/maxsize #4

Closed patmo141 closed 5 years ago

patmo141 commented 5 years ago

In an older version, in UI_Markdown class had max_size property and later it has been changed to min_size. That's fine I can work with either. Should it have both? I'm sure there are implications on UI_Collapsible, Containers and buttons etc that I don' fully understand.

patmo141 commented 5 years ago

actually, the difference I am finding is in the set_markdown() function, the UI_WrappedLabel.

image

patmo141 commented 5 years ago

Ok, got it figured out, on the version of UI that cut_mesh uses, UI_WrapedLabel has minsize and maxsize and some differences in set_markdown. Not sure which is "better"

patmo141 commented 5 years ago

but the issue i'm having is menus being too big or i can't figure out how to get the menu to limit itself.

patmo141 commented 5 years ago

image

patmo141 commented 5 years ago

https://github.com/patmo141/cut_mesh/blob/version_1/common/ui.py

here is the altered version of ui, I'm not sure which is the "more mature" version

patmo141 commented 5 years ago

it looks like the current implementation is more mature, but that the behavior is just a tad different, where it sets the markdown at max_size instead of at min_size. So I was misunderstanding how to set the starting size of the markdown menu