There's some code in textarea.js in charge of aligning the grippie by adding a margin (usually negative). For RTL layouts it should be a left margin rather than a right one.
Replacing:
grippie.style.marginRight = (grippie.offsetWidth - $(this)[0].offsetWidth) +'px';
with:
if( $(this).css("direction") === "rtl" ) {
grippie.style.marginLeft = (grippie.offsetWidth - $(this)[0].offsetWidth) +'px';
} else {
grippie.style.marginRight = (grippie.offsetWidth - $(this)[0].offsetWidth) +'px';
}did the trick for me (tested on FF3 and IE6).
| Comment | File | Size | Author |
|---|---|---|---|
| #22 | grippie-position.patch | 870 bytes | josevitalsouto |
| #19 | grippie-position-D6.patch | 870 bytes | josevitalsouto |
| #18 | grippie-position.diff | 829 bytes | josevitalsouto |
| #8 | 470488_d6_grippie_rtl-5.patch | 739 bytes | adrinux |
| #6 | 470488_d6_grippie_rtl-3.patch | 739 bytes | adrinux |
Comments
Comment #1
adrinux commentedJust came across this on 6.17 (not my site, I'm just theming), and above snippet does fix the issue.
Attached is a patch with the same code.
Comment #3
adrinux commentedHere's a screenie of the issue in safari. It's the core contact page textarea, after add 'Arabic' language and switching to it. This is from Drupal-6.20.
Comment #4
adrinux commentedMore verbose title, update version since it still exists, priority to normal and set to needs review. New patch attached, generated from git 6.x branch.
Apply patch with:
patch -p1 < 470488_d6_grippie_rtl-2.patch(Lets hope the testing bot can apply this one.)
Comment #6
adrinux commentedOK test bot. this one is made with git diff's --no-prefix flag. Maybe you can handle that?
Comment #8
adrinux commentedDoes test bot only test against d7 now or something? This patch applies perfectly to the remotes/origin/6.x branch on git.drupalcode.org. One more try for test bot.
For any humans which which need the patch please just pop in in your drupal root folder and do:
Comment #10
adrinux commentedGiving up. Patch works and can be easily applied by me.
Comment #11
sepla commentedadrinux is right, I second it. The patch also works fine for me, I'll attach a well-formed one asap, so it might pass the PIFR tests. I wonder why this issue is so unloved in the queue, thanks adrinux.
Comment #12
adrinux commented#8: 470488_d6_grippie_rtl-5.patch queued for re-testing.
Comment #14
sepla commentedI had the same testbot issue in #1091000: uc_store_format_price_field_value() does not respect decimal marker:
So I'm changing this to 6.x-dev to see if it works.
Comment #15
sepla commented#8: 470488_d6_grippie_rtl-5.patch queued for re-testing.
Comment #17
tr commentedTagging
Comment #18
josevitalsoutoComment #19
josevitalsoutoComment #20
sepla commentedAFAIK you need to provide a
--no-prefixpatch..Comment #21
josevitalsoutoComment #22
josevitalsoutoComment #23
good_man commentedFollow Drupal conventions, else should be located on new line.
1 days to next Drupal core point release.