Skip to content

Commit

Permalink
fix(ui5-dialog): resize handle is no longer shown on phones (#4326)
Browse files Browse the repository at this point in the history
Fixes: #4253
  • Loading branch information
dimovpetar authored Nov 22, 2021
1 parent 5aedc43 commit 9b3869f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/main/src/Dialog.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<slot name="footer"></slot>
</footer>
{{/if}}
{{#if resizable}}
{{#if _showResizeHandle }}
<ui5-icon
name="resize-corner"
dir="{{effectiveDir}}"
Expand Down
4 changes: 4 additions & 0 deletions packages/main/src/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ class Dialog extends Popup {
return this._movable ? "0" : undefined;
}

get _showResizeHandle() {
return this.resizable && this.onDesktop;
}

_show() {
super._show();
this._center();
Expand Down

0 comments on commit 9b3869f

Please sign in to comment.