Hi,
I press a button with a handler MessageBox.Show(“Hello World!”); The screen grays out as it would be supposed to do for a modal, but no message box shows up. And, so, I cannot do anything more, because the browser window is disabled.
What could cause the issue?
A
Actually it’s a theme mixin problem. And it’s not obvious to me why this happens. You can find the mixin file attached. As it is now, the messagebox does not show up. If you remove the appearances:button:states:default:styles node the messagebox shows up. Now, why the appearance of button makes the messagebox vanish … it beats me!
Best,
Alex
Actually I cannot attach, it says that theme extension is not allowed… tried to rename it to zip, also not allowed.. unless you are doing something else. JPGs are allowed.
So, I’m appendin it below. A.
{
“name”: “Material-3.mixin”,
“fonts”: {
“default”: {
“size”: 18,
“family”: [ “roboto”, “verdana”, “arial” ]
},
“defaultBold”: {
“size”: 18,
“family”: [ “roboto”, “verdana”, “arial” ],
“bold”: true
}
},
“colors”: {
“aa-innerPanelTitle”: “#687D76”,
“aa-outerPage”: “#E3E7EA”,
“aa-outerMenuBack”: “#00A1B1”,
“aa-outerMenuBackHighlight”: “#00C1D1”,
“aa-patientMenuBack”: “#FFFFFF”,
“aa-patientMenuText”: “#687D76”,
“aa-patientMenuTextHighlight”: “#00A1B1”,
“aa-innerPanelBack”: “#F6F7F9”,
“focusFrame”: “aa-outerMenuBack”,
“buttonFace”: “aa-outerMenuBack”
},
“appearances”: {
“button”: {
“inherit”: “button”,
“states”: {
“default”: {
“properties”: {
“textColor”: “aa-patientMenuBack”,
“font”: “defaultBold”
}, // include the styles to make the messagebox vanish, remove them to make it work !
“styles”: {
“backgroundColor”: “aa-outerMenuBack”,
“shadowColor”: “transparent”,
“width”: “0”
}
}
}
}
}
}
width: 0 not “0”
all the sizes in the theme are numbers. I don’t know where the error happens in the layout engines, it seems that NaN places the MessageBox here: {left: 585, top: -29025025010014556, width: 750, height: 58050050020030080}
Please login first to submit.