|
|
@ -37,7 +37,7 @@ |
|
|
|
</div> |
|
|
|
</q-card-section> |
|
|
|
<q-separator /> |
|
|
|
<q-card-section :style="generateDialogBodyStyle()" class="overflow-y-scroll"> |
|
|
|
<q-card-section :style="generateDialogBodyStyle()" class="overflow-y-auto"> |
|
|
|
<div ref="dialogContentDivRef" style="height: 100%"> |
|
|
|
<slot></slot> |
|
|
|
</div> |
|
|
@ -110,9 +110,14 @@ const generateDialogBodyStyle = () => { |
|
|
|
if (dialog.maximized) { |
|
|
|
result.height = quasar.screen.height - 60 + 'px'; |
|
|
|
} else { |
|
|
|
if (props.height) { |
|
|
|
result.height = 'calc(' + props.height + ' - 60px)'; |
|
|
|
} |
|
|
|
// if (props.height) { |
|
|
|
// if (props.height.indexOf('%') > 0) { |
|
|
|
// result.height = 'calc(100% - 60px)'; |
|
|
|
// } else { |
|
|
|
// result.height = 'calc(' + props.height + ' - 60px)'; |
|
|
|
// } |
|
|
|
// } |
|
|
|
result.height = 'calc(100% - 60px)'; |
|
|
|
} |
|
|
|
return result; |
|
|
|
}; |
|
|
|