Open duruburak opened 1 year ago
@duruburak If you use sticky='nsew'
in grid, then height attribute doesn't work.
@duruburak If you use
sticky='nsew'
in grid, then height attribute doesn't work.
It works for CTkFrame()
though, height attribute works as an initial height value. You change the values and see it yourself.
It works for CTkFrame() though, height attribute works as an initial height value. You change the values and see it yourself.
@duruburak If you use sticky='nsew'
for ctkframe then height doesn't work there.
But yes, ScrollableFrame has a issue with height even if you don't use sticky. The minimum height is set as 200 ig.
It works for CTkFrame() though, height attribute works as an initial height value. You change the values and see it yourself.
@duruburak If you use
sticky='nsew'
for ctkframe then height doesn't work there.But yes, ScrollableFrame has a issue with height even if you don't use sticky. The minimum height is set as 200 ig.
It works as an initial height value. You can see it by changing
frame_3 = customtkinter.CTkFrame(master=frame_master, height=100, fg_color="orange")
frame_3.grid(row=3, sticky="nswe")
to this:
frame_3 = customtkinter.CTkFrame(master=frame_master, height=10, fg_color="orange")
frame_3.grid(row=3, sticky="nswe")
It has sticky="nswe"
assigned, it's what I meant and what I also want for CTkScrollableFrame()
. I don't expect a static height, I just want an initial height of let's say 10 and I want it to expand proportionally on resize.
I spent about an hour trying to cope with it before I realized that the height parameter has a minimum of 200 pixels.
This is a problem comes by self._parent_canvas
inside the class. Because the scrollbar doesn't change after 200 px, and canvas can't resizes itself after that point. This is what I think.
heey
to change the height of scrollable frame => self.var._scrollbar.configure(height=self._apply_window_scaling(400))
In grid systems, normal
CTkFrame
'sheight
attribute works without a problem, butCTkScrollableFrame
's height is not changing for some reason.