|
27 | 27 | }
|
28 | 28 |
|
29 | 29 | myscript-common-element {
|
30 |
| - height: 100%; |
31 |
| - } |
32 |
| - |
33 |
| - myscript-common-element.result { |
34 | 30 | height: calc(100% - 100px);
|
35 | 31 | }
|
36 | 32 |
|
|
42 | 38 | max-height: 95px;
|
43 | 39 | }
|
44 | 40 |
|
| 41 | + .resultField[hidden] + myscript-common-element { |
| 42 | + height: 100%; |
| 43 | + } |
| 44 | + |
45 | 45 | .text {
|
46 | 46 | color: #1580CD;
|
47 | 47 | background-color: #EDF0F2;
|
|
198 | 198 | if (myscriptTextWebElement.unloaded !== true && myscriptTextWebElement.connected === true) {
|
199 | 199 |
|
200 | 200 | myscriptTextWebElement.myscriptcommonelement = textQsWrapper(myscriptTextWebElement).querySelector('myscript-common-element');
|
201 |
| - //myscriptTextWebElement.myscriptcommonelement.unloaded = false; |
202 | 201 | myscriptTextWebElement.myscriptcommonelement.options = { recognitionParams: { textParameter: textBuildOptionsFromTextParam(myscriptTextWebElement) } };
|
203 | 202 | myscriptTextWebElement.myscriptcommonelement.removeAttribute('unloaded');
|
204 |
| - myscriptTextWebElement.hideresultChanged(myscriptTextWebElement.hideresult); |
205 | 203 |
|
206 | 204 | myscriptTextWebElement.myscriptcommonelement.addEventListener('myscript-common-element-change', function (event) {
|
207 | 205 | LOG("text change intercepted", event);
|
|
462 | 460 | */
|
463 | 461 | hideresult: {
|
464 | 462 | type: Boolean,
|
465 |
| - value: false, |
466 |
| - observer: 'hideresultChanged' |
| 463 | + value: false |
467 | 464 | },
|
468 | 465 | /**
|
469 | 466 | * The recognition language used by the recognition process.
|
|
687 | 684 | //-----------------------------------------------------------------------
|
688 | 685 | //--------- Wrapping END ------------
|
689 | 686 | //-----------------------------------------------------------------------
|
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 |
| - }, |
702 | 687 | unloadedChanged: function (newUnloadValue) {
|
703 | 688 | LOG('text unloaded changed', newUnloadValue);
|
704 | 689 | this.unloaded = newUnloadValue;
|
|
0 commit comments