TomSchimansky / CustomTkinter

A modern and customizable python UI-library based on Tkinter
MIT License
11.33k stars 1.07k forks source link

add sensitive scrollbar feature #2539

Open HelloWorld-er opened 1 month ago

HelloWorld-er commented 1 month ago

Originally, scrollbar in scrollable frame is displayed regardless whether it is necessary. If the content size is smaller than the frame size, the scrollbar of that scrollable frame is not necessary to be displayed. I added a few lines of code to check whether it is necessary to display scrollbar in that frame as event is happened.

HelloWorld-er commented 1 month ago

Because I have accidentally deleted the file, I reset it. And also, because of previous misunderstanding, the scrollbar will not be sensitive and the frame may also collapse if the size of the frame is set under a certain value. Now I have updated. So if you want to see the difference, go straight to the last update which should be under this comment.