Skip to content

Commit 9b3869f

Browse files
authored
fix(ui5-dialog): resize handle is no longer shown on phones (#4326)
Fixes: #4253
1 parent 5aedc43 commit 9b3869f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/main/src/Dialog.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<slot name="footer"></slot>
2424
</footer>
2525
{{/if}}
26-
{{#if resizable}}
26+
{{#if _showResizeHandle }}
2727
<ui5-icon
2828
name="resize-corner"
2929
dir="{{effectiveDir}}"

packages/main/src/Dialog.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ class Dialog extends Popup {
277277
return this._movable ? "0" : undefined;
278278
}
279279

280+
get _showResizeHandle() {
281+
return this.resizable && this.onDesktop;
282+
}
283+
280284
_show() {
281285
super._show();
282286
this._center();

0 commit comments

Comments
 (0)