1. #1
    Ext User
    Join Date
    May 2010
    Posts
    7
    Vote Rating
    0
    bentins is on a distinguished road

      0  

    Default Created an RTL version, one small issue left

    Created an RTL version, one small issue left


    I did work for supporting RTL in GXT. I have a version which supports RTL almost in full however I have one small issue which I wasn't able to resolve. The following image will help me explain the problem.

    combo.jpg

    On the right you see the good behavior of the combo box, opening under the field. On the left you see that the opened div is pushed to the left.

    Here is what I got so far... Outside a "FormPanel" the combo worked fine in RTL. Within a "FormPanel", as long as the components added to the panel are "TextField" or "Combobox" everything is fine. When I add a different type of component like radio buttons, slider, text area or else it causes the combo to behave as it is on the left image. The calculation error occurs in El.java in the translatePoints method

    for some reason o.x and l are not equal although they should be. I wasn't able to trace why adding one of the above described components to the panel causes this problem.

    I used "CustomFormExample" which comes with GXT sample code as my test case class. Any help pointing me to the right direction will be appreciated.

    BTW. I'll be happy to contribute my work on RTL, just drop me a note...

  2. #2
    Sencha User
    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


    I also have some RTL things and i dont have this problem. It is hard to tell without having the code.

  3. #3
    Ext User
    Join Date
    May 2010
    Posts
    7
    Vote Rating
    0
    bentins is on a distinguished road

      0  

    Default


    I managed to solve the issue. Things are working fine with firefox, however I have lots of problems with ie. It seems that whenever I use a RTL locale it reports a wrong offsetWidth. Do you know anything about that?

Thread Participants: 1

Tags for this Thread