httpdispatch / gxt-rtl

Automatically exported from code.google.com/p/gxt-rtl
Other
0 stars 1 forks source link

Html and HtmlContainer flips input html content #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create Html or HtmlContainer object by giving html string as input parameter 
( or setting HtmlContainers url )
2. Adding this object to TabItem or Content panel

What is the expected output? What do you see instead?
The result is flipped version of my expected output. For example suppose our 
input html contains a table witch starts columns from right to left as id, 
name, description. So what we get is a table that their column starts from 
expected order BUT FROM LEFT TO RIGHT!

What version of the product are you using? On what operating system?
gxt-2.2.5-RTL_20110922
Win 7 - 32 bit

Please provide any additional information below.

I attached both expected and wrong output captures. So I changed the titles to 
English for better communicating! :)

Thanks

Original issue reported on code.google.com by VahidKhM...@gmail.com on 6 Aug 2012 at 5:59

Attachments:

GoogleCodeExporter commented 9 years ago
PS. In addition I should say when I use TabItem or ContentPanel's setUrl method 
the reason is same as what expected. But I prefer to don't use that method and 
because: 
1- Just last loaded iFrame is visible at a time. This means that navigating 
through other preloaded tab items displays a blank page.
2- Poor control over loaded page through GWT, like catching click events and 
etc.

Original comment by VahidKhM...@gmail.com on 6 Aug 2012 at 6:10

GoogleCodeExporter commented 9 years ago
Did you try specify dir="rtl" attribute in your HTML string?

Original comment by vt...@mail.ru on 6 Nov 2012 at 11:33

GoogleCodeExporter commented 9 years ago
Yes I did.

Original comment by VahidKhM...@gmail.com on 7 Nov 2012 at 6:46

GoogleCodeExporter commented 9 years ago
Unfortunately i don't have the HtmlContainer demo and don't have enough time to 
create it. Can you please test attached fix?

Original comment by vt...@mail.ru on 7 Nov 2012 at 7:40

Attachments:

GoogleCodeExporter commented 9 years ago
OK, thanks. So, let me test it.

Original comment by VahidKhM...@gmail.com on 7 Nov 2012 at 10:08

GoogleCodeExporter commented 9 years ago
I tested it and unfortunately does not fixed.
I attached html content that I pass into Gxt's (or even GWT's ) Html Widget 
that will add to HtmlContainer. 
When I open this file through browser, everything is OK.
I attached the sample html page.

Original comment by VahidKhM...@gmail.com on 7 Nov 2012 at 12:29

Attachments:

GoogleCodeExporter commented 9 years ago
Did you try to set rtl attribute inside your html? <html dir="rtl"> or <body 
dir="rtl">

Original comment by vt...@mail.ru on 8 Nov 2012 at 6:23

GoogleCodeExporter commented 9 years ago
Your html is not RTL ready. Try to change <html dir="rtl"> and open it in 
browser.

Original comment by vt...@mail.ru on 8 Nov 2012 at 6:27