right-to-left

Irrelevant change of button size in Right to Left orientation

坚强是说给别人听的谎言 提交于 2019-12-05 18:45:58
I have 9 jbuttons added to jpanel and the panel added to jscrollpane and it added to jframe. http://www.pic1.iran-forum.ir/images/up9/95426323683658592564.jpg when i change frame orientation by: applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); the panel move to right and size of buttons got fixed and wouldn`t fill the panel but you see in the image below that scrolbar is fill all width of panel http://www.pic1.iran-forum.ir/images/up9/60975202722295688553.jpg (i used gridbaglayout for adding buttons and borderlayout.center for add scrollpane). is that a bug in java or ? EDIT: its

Printing table cells from right to left

。_饼干妹妹 提交于 2019-12-05 16:36:39
问题 I make a table and want the first cell to start from right instead of from left as default. I tried changing the float attribute in CSS but it doesn't seem to help. Here is the code: <table border="0" width="100%" cellspacing="0" align="center" class="result_table"> <tr align="right"> <th bgcolor="#cccccc" align="right">1</th> <th bgcolor="#cccccc" size="17">2</th> <th bgcolor="#cccccc">3</th> <th bgcolor="#cccccc">4</th> </tr> </table> <style> table.result_table { float:right; } </style> Can

ViewPager for screen slides from right to left

佐手、 提交于 2019-12-05 14:36:54
I am using ViewPager for screen slide it works fine for language's script from left to right but for Arabic script which is actually right to left is not feasible can i swipe pages of viewpager in reverse order? Try this, viewPager.setCurrentItem(ViewPagerSize); and this will make user swipe right to left At the time of this post, ViewPager still doesn't handle RTL correctly. Here's a a workaround when using TabLayout: Set android:layoutDirection="ltr" in the TabLaout XML, so it will always display left-to-right. Before you call setupWithViewPager(viewPager) , check if running in RTL, and if

Android : Navigation button show wrong side when layout direction is RTL

不羁的心 提交于 2019-12-05 11:08:10
I asked this question before ( here ) but nobody answered so I ask It a little bit simpler. The problem is when I change the layout direction to RTL (in xml file : android:layoutDirection="rtl" or programmatically : if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1){ getWindows().getDecorView().setLayoutDirection(View.LAYOUT_DIRECTION_RTL); } doesn't matter) the navigation icon remain LTR How can I fix this issue? To be more specific the arrow should point at right! In the Activity Class --> Add these lines : onCreate(){ ActionBar ab = getSupportActionBar(); // Enable the Up

Right to left for specific text in react-native RTL

谁说我不能喝 提交于 2019-12-05 09:30:53
I am developing app in arabic in react native , i have used the tabs and menu from native base. i have aligned right because there is only single word . but now i have to write sentence which is right to left aligned. Is there way to set RTL format for specific text because when i set the I18nManager.forceRTL(true); it changed it for whole app and my previous work is all ruined and tabs not work correctly . please help . The React Native version is 0.57 now, And there is no react native configuration for RTL support yet. But there is a native solution for it. for IOS and Android use below

right-to-left (RTL) support in SASS project

三世轮回 提交于 2019-12-05 05:21:28
I'm wondering if it's possible to make a mixin that handles multiple arguments as properties that should be converted to rtl. I want to do something like .css-selector { width: 300px; height: 200px; @include rtl { padding: 10px 5px 3px 4px; margin: 3px 8px 2px 5px; } } with a mixin: $rtl = false !default; @mixin rtl() { @if $rtl { dir: rtl; @each $property in @content { //check property if it's padding or margin or something else rtl-related... if hit use rtl mixin } } @else { @content; } } I think I should parse the @content, but it doesn't work (Invalid CSS after "...h $property in ":

Support of html tags and right-to-left languages in Jupyter

走远了吗. 提交于 2019-12-05 01:51:18
问题 In ipython notebooks we could add html tags inside markdowns. A useful tag for right-to-left languages was <p dir=rtl> text </p> that conveniently made the text aligned to right. Is there a way to add html tags or right-to-left paragraph alignment in Jupyter? 回答1: It can be done like this: <div style="direction:rtl"> Right-to-left text </div> 来源: https://stackoverflow.com/questions/35238470/support-of-html-tags-and-right-to-left-languages-in-jupyter

Right-to-left UI Guidelines?

喜夏-厌秋 提交于 2019-12-04 20:15:17
问题 I'm looking into RTL support for a proprietary UI framework (for a desktop app), and I'm wondering: are there guidelines as to how the widget rendering has to change? I'm looking for a list of things like: checkbox labels are on the left of the checkbox, and right-aligned toolbar buttons flow from right to left vertical sliders are on the left sice window decoration ??? ... 回答1: Generally layout should be mirrored that is horizontally flipped. Apart from controls you already mentioned,

How to dynamically switch text direction in CKEditor

别来无恙 提交于 2019-12-04 17:28:37
On my current project, users can type text in English and Hebrew languages. Would be great to define direction automatically, according to the current text. For example, if the text contains Hebrew symbols, the direction should be RTL. But if the text doesn't contain Hebrew, then the direction is LTR. Text can be changed at any moment, and I think that the best solution is to switch the direction dynamically like it works in the Google Translate service. I didn't find already done solution and I want to propose my own. It works pretty simply. Each time, when text has been changed, I'm checking

hiding text using “text-indent”

纵饮孤独 提交于 2019-12-04 17:17:25
问题 I'm trying to hide some text inside an <li> element using CSS by setting text-indent: -999px; . For some reason this doesn't work when I set the direction of the document to "rtl" (right to left - my site is in Hebrew). When direction is "rtl" the text still shows... Anyone knows why, and a way around this? 回答1: Along with text-indent: -9999px try using display: block; . It solved for me. Additionally, if you need the li elements to float horizontally (e.g. a horizontal menu), use float: left