fix ui5 2.x bugs (#1798)

* fix ui5 2.x bugs

* Update App.controller.js
This commit is contained in:
oblomov-dev 2025-03-10 19:52:15 -03:00 committed by GitHub
parent ff096aba53
commit 489e40d226
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View File

@ -11,7 +11,7 @@
>
<IconTabHeader
selectedKey="PLAIN"
select="onItemSelect"
select=".onItemSelect"
>
<items>
<IconTabFilter
@ -83,7 +83,7 @@
</items>
</IconTabHeader>
<VBox>
<ToggleButton text="Source XML after Templating" visible="{/isTemplating}" pressed="{/templatingSource}" press="onTemplatingPress" />
<ToggleButton text="Source XML after Templating" visible="{/isTemplating}" pressed="{/templatingSource}" press=".onTemplatingPress" />
<ce:CodeEditor
type="{/type}"
value="{/value}"
@ -97,7 +97,7 @@
<endButton>
<Button
text="Close"
press="onClose"
press=".onClose"
/>
</endButton>
</Dialog>

View File

@ -851,8 +851,9 @@ sap.ui.define("z2ui5/SmartMultiInputExt", ["sap/ui/core/Control", "sap/m/Token",
sap.ui.define("z2ui5/CameraPicture", [
"sap/ui/core/Control",
"sap/m/Dialog",
"sap/m/Button"
], function (Control, Dialog, Button) {
"sap/m/Button",
"sap/ui/core/HTML"
], function (Control, Dialog, Button, HTML) {
"use strict";
return Control.extend("z2ui5.CameraPicture", {
metadata: {
@ -900,7 +901,7 @@ sap.ui.define("z2ui5/CameraPicture", [
verticalScrolling: false,
stretch: true,
content: [
new sap.ui.core.HTML({
new HTML({
id: this.getId() + 'PictureContainer',
content: '<video width="600px" height="400px" autoplay="true" id="zvideo">'
}),
@ -911,7 +912,7 @@ sap.ui.define("z2ui5/CameraPicture", [
this._oScanDialog.close();
}.bind(this)
}),
new sap.ui.core.HTML({
new HTML({
content: '<canvas hidden id="zcanvas" style="overflow:auto"></canvas>'
}),
],