mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add id to clone div; override inline styles for rtl locales
This commit is contained in:
@@ -56,3 +56,9 @@ float: left !important;
|
|||||||
.rtl .dashboard-right {
|
.rtl .dashboard-right {
|
||||||
float: left !important;
|
float: left !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Right and left will be flipped by the r2 gem
|
||||||
|
.rtl #caret-clone[style] {
|
||||||
|
right: auto !important;
|
||||||
|
left: -7000px !important;
|
||||||
|
}
|
||||||
|
|||||||
2
vendor/assets/javascripts/caret_position.js
vendored
2
vendor/assets/javascripts/caret_position.js
vendored
@@ -45,7 +45,7 @@ $.fn.caretPosition = function(options) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
styles = getStyles(textarea[0]);
|
styles = getStyles(textarea[0]);
|
||||||
clone = $("<div><p></p></div>").appendTo("body");
|
clone = $("<div id='caret-clone'><p></p></div>").appendTo("body");
|
||||||
p = clone.find("p");
|
p = clone.find("p");
|
||||||
clone.width(textarea.width());
|
clone.width(textarea.width());
|
||||||
clone.height(textarea.height());
|
clone.height(textarea.height());
|
||||||
|
|||||||
Reference in New Issue
Block a user