Hello,
I’ve noticed weird behavior of AP.dialog “size: fullscreen” property.
If you set it, It also set’s chrome: true
. I haven’t found any info about this behavior in docs so I guess It might be bug.
Example:
function openReactEditorDialog(customData) {
AP.dialog.create({
key: 'react-editor-dialog',
size: "fullscreen",
chrome: false,
});
// renders fullscreen dialog WITH chrome header panel
}
For now we use this workaround:
function openReactEditorDialog(customData) {
// Note do not use __size: "fullscreen"__ it sets __chrome: true__ as side effect
// and causes displaying dialog header.
// Also options from __atlassian-connect.json__ override any defined here.
AP.dialog.create({
key: 'react-editor-dialog',
width: '100%',
height: '100%',
})
}