How to correctly specify dialog size in vaadin-flow

后端 未结 2 1665
孤街浪徒
孤街浪徒 2021-01-28 13:38

Trying to open a dialog from a grid renderer which contain a button. The problem is that the dialog isn\'t respecting the specified size.

I\'ve tried setting the width a

2条回答
  •  猫巷女王i
    2021-01-28 13:52

    Faced same case recently. You can disable width limit by styling your dialog using @HtmlImport :

    @HtmlImport("styles/order-edit.html")
    class OrderEdit(val orderId: String, okHandler: (Order)->Unit): Dialog() {
    ...
    }
    

    with following content:

    
        
    
    

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题