[Question] Rotate property and space #2060
              
                
                  
                  
                    Answered
                  
                  by
                    ndonkoHenri
                  
              
          
                  
                    
                      ingdesarr1
                    
                  
                
                  asked this question in
                Q&A
              
            -
| QuestionGood afternon. I'm testing the rotate control to use with a Progressbar, to display it vertically. The problem is that when rotating the element, flet detects that it is still occupying the same space horizontally and not vertically. If I reduce the horizontal space, this reduces the element and the display in rotation is affected. How can I make the ProgressBar look vertically but without this problem? I try with a Container, but the problem still. Thanks Code samplefrom time import sleep
import math
import flet as ft
def main(page: ft.Page):
    pb = ft.ProgressBar(height=20,width=100,rotate=ft.Rotate(-math.pi/2,alignment=ft.alignment.top_left),value=0)
    def cambio(e):
        pb.value = e.control.value/100
        page.update()
    page.add(
        ft.Slider(min=0,max=100,divisions=100,label="{value}%",on_change=cambio),
        ft.Text("Linear progress indicator", style="headlineSmall"),
        ft.Column([ ft.Text("Doing something..."), 
                   ft.Row(
                       controls=[
                        #    ft.Container(width=10,content=pb,bgcolor="red",rotate=ft.Rotate(-math.pi/2,alignment=ft.alignment.top_left)),
                            pb,
                           ft.Container(bgcolor="blue",width=50,height=50)
                       ]
                   )
                   ]),
    )
ft.app(target=main)Error messageNo response ------------------------------------------------------
 | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            ndonkoHenri
          
      
      
        Nov 10, 2023 
      
    
    Replies: 1 comment 1 reply
-
| This is a bug. | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        ingdesarr1
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
This is a bug.
There's an opened issue: #1653