Fix conversation message not shrinking when collapsing quotes.
* ui/conversation-web-view.js (ConversationPageState::createControllableQuotes): Since WK does not want to seem to reduce the value of offsetHeight for the HTML element when a quote is collapsed, calculate the difference and manually update the preferred height. * ui/client-web-view.js (PageState::updatePreferredHeight): Allow the new preferred height to be passed in as a param.
This commit is contained in:
parent
8bf68bd345
commit
d74fcd2e2c
2 changed files with 23 additions and 24 deletions
|
|
@ -84,9 +84,12 @@ PageState.prototype = {
|
|||
/**
|
||||
* Sends "preferredHeightChanged" message if it has changed.
|
||||
*/
|
||||
updatePreferredHeight: function() {
|
||||
updatePreferredHeight: function(height) {
|
||||
if (height === undefined) {
|
||||
height = this.getPreferredHeight();
|
||||
}
|
||||
|
||||
let updated = false;
|
||||
let height = this.getPreferredHeight();
|
||||
if (height > 0 && height != this.lastPreferredHeight) {
|
||||
updated = true;
|
||||
this.lastPreferredHeight = height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue