0

rtl direction does not effect toolbar

asked 2011-04-08 18:36:40 +0800

hsoboh gravatar image hsoboh
18

I tried to set the toolbar direction to rtl but it does not take effect, the toolbar still render its buttons from ltr

Any help ?

Thanks,
Hussein

delete flag offensive retag edit

4 Replies

Sort by ยป oldest newest

answered 2011-04-09 03:28:18 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

As a suggestion, i help me with the followed construct. In my case with a three sectioned toolbar.

		<div sclass="z-toolbar" style="padding:0">
			<hbox pack="stretch" sclass="hboxRemoveWhiteStrips"
				width="100%">
				<toolbar align="start"
					style="float:left; border-style: none;">
					<button id="btnHelp" height="24px"
						image="/images/icons/light_16x16.gif"
						tooltiptext="${c:l('btnHelp.tooltiptext')}" />
					<button id="btnRefresh" height="24px"
						image="/images/icons/refresh2_yellow_16x16.gif"
						tooltiptext="${c:l('btnRefresh.tooltiptext')}" />
				</toolbar>

				<toolbar align="center"
					style="float:left; border-style: none;">
					<button id="btn_SearchDialogBranch" height="24px"
						image="/images/icons/btn_search2_16x16.gif"
						tooltiptext="${c:l('btnSearch.tooltiptext')}" />
					<button id="btnPrintBranch" height="24px"
						image="/images/icons/btn_print2_16x16.gif"
						tooltiptext="${c:l('btnPrint.tooltiptext')}" />
				</toolbar>

				<toolbar align="end"
					style="float:right; border-style: none;">
					<button id="btnNew" height="24px"
						tooltiptext="${c:l('btnNew.tooltiptext')}" />
					<button id="btnEdit" height="24px"
						tooltiptext="${c:l('btnEdit.tooltiptext')}" />
					<button id="btnDelete" height="24px"
						tooltiptext="${c:l('btnDelete.tooltiptext')}" />
					<button id="btnSave" height="24px"
						tooltiptext="${c:l('btnSave.tooltiptext')}" />
					<button id="btnCancel" height="24px"
						tooltiptext="${c:l('btnCancel.tooltiptext')}" />
				</toolbar>
			</hbox>
		</div>


pieces of the css-file

/* ------------------- TOOLBAR -------------------- */
	/* remove white strips between the toolbars */
.hboxRemoveWhiteStrips td.z-hbox-sep {
	width: 0;
	padding: 0;
}

best
Stephan

link publish delete flag offensive edit

answered 2011-04-15 18:03:17 +0800

hsoboh gravatar image hsoboh
18

Thanks for your reply
rendering the toolbar buttons from ltr or from rtl can be achieved using align="start" or align="right" respectively as seen in you example above. I tried it and it works fine.
The limitation in this that the align property can't be assigned a value using style element such that putting style="align:start" to the toolbar will not take effect. and this is my problem now since my application supports changing the locale at runtime in which I change the style of the elements at runtime. Change the alignment style for other elements using "right" or "left" works fine but this seems not doable in toolbar element since "end" value can't be assigned in style element.
Did you encountered such a problem? or if you have ideas on how to change the toolbar alignment using css ?

Thanks,
Hussein

link publish delete flag offensive edit

answered 2011-05-11 06:06:46 +0800

knex gravatar image knex
84 1

thank you, this was very helpful for me too

link publish delete flag offensive edit

answered 2011-05-15 00:12:54 +0800

dagarwal82 gravatar image dagarwal82
246 4

updated 2011-05-15 00:13:37 +0800

This is not a valid style.

style="align:start"

Try this :

style="right:10px"

This suggests that the component will be on the right side with 10px distance.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-04-08 18:36:40 +0800

Seen: 348 times

Last updated: May 15 '11

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More