Try to compute the size of the items manually, even if GetBoundingRect() doesn't return it, as it happens when the items are collapsed.
This ensures the tree control best size is big enough to show the tree fully expanded.
Closes #25839.
Replaces #25843.
https://github.com/wxWidgets/wxWidgets/pull/25930
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Sorry but I'd really appreciate if you could reformulate your comment in a text form because I have no idea what do you mean by this image.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Here are the results of my tests on three OSs using your PR code. Looks good.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #25930.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Merged in the commit above.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
After I deleted this code, it ran like the picture below. I think it is safe to delete this code.
image.png (view on web)—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
After I deleted this code, it ran like the picture below. I think it is safe to delete this code.
When using 200% DPI it looks bad without this extra indent:
image.png (view on web)so I'd rather keep it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()