作者:一颗顽石 | 来源:互联网 | 2023-06-04 12:01
Isitpossibletotriggerrepositioningofapaper-action-dialogafterdialogresize?Whenthedialo
Is it possible to trigger repositioning of a paper-action-dialog
after dialog resize? When the dialog is resized, then the window is not centered anymore. Is there a way/function call to trigger repositioning of the dialog? I've tried to set offsetLeft
and offsetTop
to zero but this won't trigger repositioning.
在对话框调整大小后是否可以触发重新定位纸张对话框?调整对话框大小后,窗口不再居中。是否有方法/函数调用来触发对话框的重新定位?我试图将offsetLeft和offsetTop设置为零,但这不会触发重新定位。
When the user resizes the browser window, the paper-action-dialog
is immediately centered.
当用户调整浏览器窗口的大小时,纸张操作对话框会立即居中。
1 个解决方案