Santhosh has uploaded a new change for review. https://gerrit.wikimedia.org/r/124813
Change subject: Set the width also for the placeholder sections ...................................................................... Set the width also for the placeholder sections While emptying content width can go to 0 and prevent showing placehodler text. Change-Id: I5640b53ee9b0848baa95f928783c6479d40cab58 --- M modules/translation/ext.cx.translation.js 1 file changed, 9 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ContentTranslation refs/changes/13/124813/1 diff --git a/modules/translation/ext.cx.translation.js b/modules/translation/ext.cx.translation.js index f2e1c9a..897dd46 100644 --- a/modules/translation/ext.cx.translation.js +++ b/modules/translation/ext.cx.translation.js @@ -191,12 +191,15 @@ sourceSectionId = $section.attr( 'id' ); $sourceSection = $( jquerySelectorForId( sourceSectionId ) ); $section.empty(); - $section.css( 'min-height', $sourceSection.height() ) - .attr( { - 'id': 't' + sourceSectionId, - 'data-source': sourceSectionId, - 'contenteditable': true - } ); + $section.css( { + 'min-height': $sourceSection.height(), + width: $sourceSection.width() + } ); + $section.attr( { + 'id': 't' + sourceSectionId, + 'data-source': sourceSectionId, + 'contenteditable': true + } ); $section.on( 'input', keepAlignment ); // Bind events to the placeholder sections $sourceSection.click( function () { -- To view, visit https://gerrit.wikimedia.org/r/124813 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5640b53ee9b0848baa95f928783c6479d40cab58 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/ContentTranslation Gerrit-Branch: master Gerrit-Owner: Santhosh <santhosh.thottin...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits