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:
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user