Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Oct 2008
    Posts
    126
    Vote Rating
    1
    jonjanisch is on a distinguished road

      0  

    Default [FNR] CheckBox input / boxlabel alignment incorrect

    [FNR] CheckBox input / boxlabel alignment incorrect


    We were seeing very strange alignment issues with checkboxes in our application after migrating from GXT 2.0 to GXT 2.1.1.

    In CheckBox.onResize(int,int), alignElements() is only called if boxLabel is null. I'm not sure what the reasoning is for this, but if I override onResize and always force it to alignElements(), the issues go away.

    Simple runnable example:
    Code:
    public class MyApp implements EntryPoint {
    
        public void onModuleLoad() {
    
            CheckBox c1 = new CheckBox();
            c1.setBoxLabel("Misaligned GXT checkbox");
            c1.setStyleAttribute("backgroundColor", "#ffffaa");
            
            CheckBox c2 = new CheckBox() {
                @Override
                protected void onResize(int width, int height) {
                    super.onResize(width, height);
                    alignElements();
                }
            };
            c2.setBoxLabel("Fixed GXT checkbox");
            c2.setStyleAttribute("backgroundColor", "#ffaaff");
            
            LayoutContainer p = new LayoutContainer(new RowLayout());
            p.add(c1, new RowData(1, 80));
            p.add(c2, new RowData(1, 80));
            
            RootPanel.get().add(p);
        }
    }
    You can see in the attached image that the checkbox is only properly aligned after the layout manager is executed for the "fixed" checkbox. The CheckBox.alignElements states that the input and label should be aligned to the vertical center of the element.

    In our app, the behavior is even stranger. The label for the input is ~30px higher and ~20px further right than it should be. If I force alignElements() onResize(), it works perfectly fine.
    Attached Images

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    This is fixed in SVN now as of revision 1951

Thread Participants: 1