title: Tkinter Scrollbar - Problem allways maximized
body: <p>I have a problem that I could not solve, thanks to many of you I was able to order the tree with the scrollbar, the problem now is that the scrollbar is always maximized, it does not calculate the amount of data that is inside.</p>
  <pre><code>        frame = customtkinter.CTkFrame(self.wind, corner_radius=5)
          frame.pack(expand=&quot;true&quot;)
          
  
          button_llegue = customtkinter.CTkButton(master=frame, corner_radius=8,fg_color=&quot;IndianRed3&quot;,hover_color=&quot;IndianRed4&quot;, text='Llegue',command=self.add_fecha)
          button_llegue.grid(row = 0, column = 0,pady=(20,10),padx=(15,15))
  
          button_sali = customtkinter.CTkButton(master=frame, corner_radius=8,fg_color=&quot;PaleGreen3&quot;,hover_color=&quot;PaleGreen4&quot;, text='Me Voy',command=self.add_fecha)
          button_sali.grid(row = 0, column = 1,pady=(20,10),padx=(15,15))
  
  
          self.tree = ttk.Treeview(master=frame,height = 10, selectmode=&quot;browse&quot;)
          self.tree.grid(row = 1,column=0,pady=(10,20),columnspan=2,sticky=&quot;NWSE&quot;,padx=(15,15))
          self.tree.heading('#0', text = 'Ultimos registros', anchor = CENTER)
       
          scrollbar = ttk.Scrollbar(frame,orient='vertical',command=self.tree.yview)
          scrollbar.grid(row = 1, column=0, sticky=&quot;NSE&quot;,pady=(10,20),columnspan=2,padx=(0,15))
          
   
          self.get_fechas()
  
  </code></pre>
  <p><a href="https://i.stack.imgur.com/eo8uh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eo8uh.png" alt="enter image description here" /></a></p>