Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit e96b01d

Browse files
author
Francois-Xavier Gentilhomme
committed
[FIX] fixes resize issue
1 parent 9dcadf9 commit e96b01d

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

myscript-text-web.html

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727
}
2828

2929
myscript-common-element {
30-
height: 100%;
31-
}
32-
33-
myscript-common-element.result {
3430
height: calc(100% - 100px);
3531
}
3632

@@ -42,6 +38,10 @@
4238
max-height: 95px;
4339
}
4440

41+
.resultField[hidden] + myscript-common-element {
42+
height: 100%;
43+
}
44+
4545
.text {
4646
color: #1580CD;
4747
background-color: #EDF0F2;
@@ -198,10 +198,8 @@
198198
if (myscriptTextWebElement.unloaded !== true && myscriptTextWebElement.connected === true) {
199199

200200
myscriptTextWebElement.myscriptcommonelement = textQsWrapper(myscriptTextWebElement).querySelector('myscript-common-element');
201-
//myscriptTextWebElement.myscriptcommonelement.unloaded = false;
202201
myscriptTextWebElement.myscriptcommonelement.options = { recognitionParams: { textParameter: textBuildOptionsFromTextParam(myscriptTextWebElement) } };
203202
myscriptTextWebElement.myscriptcommonelement.removeAttribute('unloaded');
204-
myscriptTextWebElement.hideresultChanged(myscriptTextWebElement.hideresult);
205203

206204
myscriptTextWebElement.myscriptcommonelement.addEventListener('myscript-common-element-change', function (event) {
207205
LOG("text change intercepted", event);
@@ -462,8 +460,7 @@
462460
*/
463461
hideresult: {
464462
type: Boolean,
465-
value: false,
466-
observer: 'hideresultChanged'
463+
value: false
467464
},
468465
/**
469466
* The recognition language used by the recognition process.
@@ -687,18 +684,6 @@
687684
//-----------------------------------------------------------------------
688685
//--------- Wrapping END ------------
689686
//-----------------------------------------------------------------------
690-
/**
691-
*
692-
*/
693-
hideresultChanged: function (hideresult) {
694-
if (this.myscriptcommonelement) {
695-
if (hideresult) {
696-
this.myscriptcommonelement.classList.remove('result');
697-
} else {
698-
this.myscriptcommonelement.classList.add('result');
699-
}
700-
}
701-
},
702687
unloadedChanged: function (newUnloadValue) {
703688
LOG('text unloaded changed', newUnloadValue);
704689
this.unloaded = newUnloadValue;

0 commit comments

Comments
 (0)