Search…

X3 Photo Gallery Support Forums

Search…
 
saito
Topic Author
Posts: 5
Joined: 11 Oct 2011, 16:30

MainMenu items text alignment

19 Oct 2011, 11:18

Hi,
i'm trying to change the alignment of menu item's text to the right, how it can be done?
i tryed to use text-align in css file, but it seems not to work....
what i'm missing? :)
thank you.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: MainMenu items text alignment

19 Oct 2011, 22:19

Sorry, this is not possible because menu items are simply placed on left size and this is not related to CSS. Why would you want to have it aligned to right? This goes against all rules of functionality for human reading ...
 
saito
Topic Author
Posts: 5
Joined: 11 Oct 2011, 16:30

Re: MainMenu items text alignment

20 Oct 2011, 02:19

i'm trying to make a hebrew interface for my wife's website.
look's like i already was able to move the (horizontal) menu to the right side and the only thing left is to align all the items/subitems to right.

i've been reading on the forum for a while and saw that people wasn't seccessful to use the gallery for RTL languages.
but i like the gallery so much, so i want to give it a try.

about the menu on the right side, i was able to do that by writing some code that calculates the right position for x of the main menu.
of course this is a work around and this should be done differently, as it should handle also the events of resizing etc.
hopefully you will deal with this issue in one of the next versions, this will open a big hebrew / arabic audience for you as new clients.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: MainMenu items text alignment

20 Oct 2011, 21:41

I agree ... It makes sense from RTL languages to have improved implementation of this. It is a bit painful to implement into the flash version, but you can be sure we will be looking into it for our future cool html5/jquery versions ...
 
saito
Topic Author
Posts: 5
Joined: 11 Oct 2011, 16:30

Re: MainMenu items text alignment

21 Oct 2011, 03:55

Yes, it will be great.
but now i need to a working solution for my wifes new buisness, so i will apriciate your help, since i don't have a source code of the flash gallery i don't know what is the name of the element i should access to change the text alignment, from what i checked i can see menuitem1,2,3 that being copied, i guess that there is a source element template that i should change, or something like this.
please :)
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: MainMenu items text alignment

24 Oct 2011, 02:33

Well, you cant change the alignment of the text in the menu thats for sure ... However, having it RTL is an unrelated issue technically speaking. Are you saying your menu text does not display as you input it?

Do you have an Imagevue license already?
 
saito
Topic Author
Posts: 5
Joined: 11 Oct 2011, 16:30

Re: MainMenu items text alignment

24 Oct 2011, 17:33

RTL issue of text is less bothering me, yes i have a problem with that too, but this is solvable.
the alignment of menu items text this is not solvable without having a source code and this is what bothering me most of all at this point.
no, i don't have a license yet, i'm using a trial version. was hoping to prepare a working website to test that the gallery is working for us and then the logical step will be to purchase a license but at this point it looks that we are stuck :(
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: MainMenu items text alignment

25 Oct 2011, 00:13

Excuse my ignorance, but if RTL text fails then what does it help if menu item is aligned to the right? Unfortunately, the actionscript in this is not simply alignment ... Text items are created and positioned at 0. If you want to "align to right", one would have to add some code to calculate an offset on the right side based on textWidth. Unfortunately, this is not as easy as it would have been with html/CSS ...

I'm afraid RTL support in Flash/Imagevue may simply not be satisfactory as of yet :/
 
saito
Topic Author
Posts: 5
Joined: 11 Oct 2011, 16:30

Re: MainMenu items text alignment

25 Oct 2011, 02:23

two doable things will solve our prolems with the menu: (keep in mind that we have horizontal menu)
1. possibility to calculate the x offset of each item so the will be visually aligned to right.
2. possibility to define negative offset to sub menu blocks.

if you have solution for that we can move on,
thank you.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: MainMenu items text alignment

26 Oct 2011, 01:32

saito wrote:1. possibility to calculate the x offset of each item so the will be visually aligned to right.
2. possibility to define negative offset to sub menu blocks.
I answered your PM, but just in regards to option 2: You would set negative offset separately for each menu item then? Unfortunately, if you cannot get the flash to display acceptable with your RTL text, then it may be a dead cause currently. We don't have the resource to re-program this based on RTL text, and unfortunately its a big can of worms with RTL text in flash ...