pkt1583 / gwt-ext

Automatically exported from code.google.com/p/gwt-ext
0 stars 0 forks source link

Height of com.gwtext.client.widgets.ProgressBar is 0px if it's created into hidden card of com.gwtext.client.widgets.layout.CardLayout #387

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new Panel and set CardLayout as it's layout and set 0 as active
item with cardPanel.setActiveItem(0);. Add two cards into cardPanel which
both have a ProgressBar:

        Panel cardPanel = new Panel();
        cardPanel.setLayout(new CardLayout());
        cardPanel.setActiveItem(0);

        ProgressBar pbar1 = new ProgressBar();
        pbar1.setWidth(500);  
        pbar1.setValue(.01f);

        Panel firstCard = new Panel();
        firstCard.add(pbar1);

        cardPanel.add(firstCard);

        ProgressBar pbar2 = new ProgressBar();
        pbar2.setWidth(500);  
        pbar2.setValue(.01f);

        Panel secondCard = new Panel();
        secondCard.add(pbar2);

        cardPanel.add(secondCard);

2. Create a bottom toolbar to navigate between cards. 

What is the expected output? What do you see instead?

Cards are expected to be similar. But instead the height of the ProgressBar
of second card is 0px and is shown as very slim.

What version of the product are you using? On what operating system?

gwt-ext 2.0.4, gwt-windows-1.4.62

Please provide any additional information below.

firebug says that css height value of .x-progress-bar class is 18px
but it's overridden by local css style: height: 0px;

Original issue reported on code.google.com by markus.p...@gmail.com on 13 Aug 2008 at 10:16

GoogleCodeExporter commented 8 years ago
I am using extjs 2.2 and got the similar issue
the work-around is to configure the card with { hideMode: 'offsets'}

Original comment by juvens...@gmail.com on 23 Dec 2009 at 4:10

GoogleCodeExporter commented 8 years ago
FYI, set the hideMode of the panel containing the progress bar to 'offsets'  
With 
tab panels, the default hideMode of 'display' (using css to hide items) is 
pretty 
flaky.

'offsets' simply has the items drawn off screen, but rendered properly

Original comment by grudgeho...@gmail.com on 23 Dec 2009 at 4:10