PDA

View Full Version : GXT 2.2.4 RTL (Right to Left) Support



vtysh
16 Aug 2011, 12:30 AM
I've done some job to add the RTL (Right to Left) support to the GXT 2.2.x.
First i want to thank bentins for his RTL support for GXT 2.1.1 (http://www.sencha.com/forum/showthread.php?100887-RTL-Version-of-Ext-GWT-2.1.1). He gave me a good start.

Currently supported browsers are FF 4/5, Chrome. IE9. Rest browsers were not tested. IE9 has some issues with the menu.

All the original themes supports RTL.

The source code and archives for download as well as additional information can be found here http://code.google.com/p/gxt-rtl/

Online demo which shows RTL support for explorer application: Exlorer RTL Demo (http://gxt-rtl.appspot.com/index-rtl.html)
Online demo which shows RTL support for desktop application: Desktop RTL Demo
(http://gxt-rtl.appspot.com/desktop-rtl.html)
I hope with the community help we can achive stable RTL support for a gxt 2.2.x version.

One question to administration. What should be done to add the RTL support patches to the official GXT sources?


http://img96.imageshack.us/img96/2005/screen1en.th.png (http://imageshack.us/photo/my-images/96/screen1en.png/)http://img20.imageshack.us/img20/3633/screen2yd.th.png (http://imageshack.us/photo/my-images/20/screen2yd.png/)http://img228.imageshack.us/img228/2846/screen3kd.th.png (http://imageshack.us/photo/my-images/228/screen3kd.png/)http://img560.imageshack.us/img560/8374/screen4r.th.png (http://imageshack.us/photo/my-images/560/screen4r.png/)http://img560.imageshack.us/img560/8374/screen4r.th.png (http://imageshack.us/photo/my-images/560/screen4r.png/)

cutout33
16 Aug 2011, 5:08 AM
=P~

+1 to your question for adding this to the official release!!!

I think you have solved a huge issue in GXT that needs to be batched to the official repo...

Thanks for the effort :D

micgala
16 Aug 2011, 7:58 AM
Tks very much for your effort!

vtysh
21 Sep 2011, 11:05 PM
Added support for recently releasd GXT 2.2.5.

Check it out: http://code.google.com/p/gxt-rtl/

batyamit
18 Jan 2012, 6:35 AM
is this project mavenized?

vtysh
18 Jan 2012, 10:49 PM
No, it is not

batyamit
22 Jan 2012, 4:36 AM
I'm using the gxt rtl version 2.2.4

i found 2 problems:
1. the icon on the buttons are align to the center, and is getting over the text in the button.
2. FillToolItem doesn't work (it suppose to push the next element to the right on the rtl version i guess it suppose to push it to the left, but it seem it doesn't do either of them)

any body know how to solve those problems?

vtysh
22 Jan 2012, 10:55 PM
1. What browser do you use? Does this page display correctly for you? http://gxt-rtl.appspot.com/index-rtl.html#buttons
2. Here the FillToolItem is used. Do you see this demo correctly? http://gxt-rtl.appspot.com/index-rtl.html#basictoolbar

(http://gxt-rtl.appspot.com/index-rtl.html#buttons)

Aleksandar Krstik
30 Jan 2012, 5:00 AM
I also support the idea of adding RTL to the official release! Especially since GXT 3 is going to hit the streets soon.

Kudos for your own efforts in enabling RTL at the present time!

vtysh
30 Apr 2012, 3:33 AM
I received few mails from some sencha users who already purchased GXT lib and they want to use GXT RTL extension in their proprietary software. How i understand such as the GXT RTL extension contains modified code of GXT Community edition i can't release it with the less strict license than GPLv3. Is there a way out for the sencha customers who already purchased GXT to use this extension on the less strict license or no? I am not an interested side but i don't know what to answer to such people.

cutout33
2 May 2012, 11:54 PM
Any plans for GXT 3 support? it would be just awesome :D

vtysh
3 May 2012, 12:55 AM
For a now i don't have such plans. GXT 3 internal design was completely changed compared to GXT 2.x. So it requires a lot of time and energy to add RTL support there.

cutout33
3 May 2012, 1:13 AM
Could make a quick how-to/tutorial on how to apply RTL-changes. maybe this would help attracting people to contribute B)

vtysh
3 May 2012, 1:17 AM
As i told GXT 3 internals was completely changed so the techniquie i used in GXT 2.x RTL can't be applied to GXT 3 in the same condition. So i can't provide such tutorial.

Aleksandar Krstik
5 May 2012, 2:48 AM
The good thing is that if you take a look at this blog entry (http://www.sencha.com/blog/announcing-sencha-gxt-3-0/) where they announced GXT 3.0, you will see this:
The GXT 3.x Roadmap Sencha GXT 3.0 lays the groundwork for the next generation of web application frameworks. We are planning to add support for the Gray theme, and following that, we plan to introduce RTL and ARIA support.

So hold your horses and hopefully soon we'll see GXT RTL fully developed and supported by Sencha.

vtysh
5 May 2012, 3:10 AM
Great news. Thanks for the information.

hjortj1
12 Dec 2012, 2:07 AM
I received few mails from some sencha users who already purchased GXT lib and they want to use GXT RTL extension in their proprietary software. How i understand such as the GXT RTL extension contains modified code of GXT Community edition i can't release it with the less strict license than GPLv3. Is there a way out for the sencha customers who already purchased GXT to use this extension on the less strict license or no? I am not an interested side but i don't know what to answer to such people.

I suppose you could release it as a "normal diff". That way, you don't include any of the original lines of community edition content. Then someone else could use "patch" to apply it to the commercial edition.

vtysh
12 Dec 2012, 2:39 AM
I suppose you could release it as a "normal diff". That way, you don't include any of the original lines of community edition content. Then someone else could use "patch" to apply it to the commercial edition.
What about used graphics (mirrored sencha icons)? Anyway don't have enough time for this.