1
0
mirror of https://github.com/twisterarmy/twister-html.git synced 2025-03-13 05:51:03 +00:00

fix of dynamic width for post preview

This commit is contained in:
Simon Grim 2015-07-25 03:19:12 +05:00
parent e95f745d93
commit d123c3838c

@ -589,7 +589,8 @@ function posPostPreview(event) {
.css('margin-left', textArea.css('margin-left'))
.css('margin-right', textArea.css('margin-right'))
;
postPreview.css('width', textArea.css('width')
postPreview.width(textArea.width());
postPreview.width(postPreview.width() // width is not accurate if we do it with textArea.width() directly, don't know why
- postPreview.css('padding-left') - postPreview.css('padding-right'));
}
postPreview.html(htmlFormatMsg(textArea[0].value, [])).show();