Commit 9dc33810 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Поправил показ всплывающего списка с формулами (подсказками)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56379 954022d7-b5bf-4e40-9824-e11837661b57
parent 0e6e3872
...@@ -137,12 +137,11 @@ ...@@ -137,12 +137,11 @@
#apiPopUpSelector { #apiPopUpSelector {
position: absolute; position: absolute;
display: none;
} }
#apiPopUpList { #apiPopUpList {
width: 100%; width: 100%;
height: 100%; height: 100%;
max-height: 100%; max-height: 210px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
} }
......
...@@ -57,7 +57,8 @@ ...@@ -57,7 +57,8 @@
this.selector = document.createElement('div'); this.selector = document.createElement('div');
this.selectorStyle = this.selector.style; this.selectorStyle = this.selector.style;
this.selector.id = 'apiPopUpSelector'; this.selector.id = 'apiPopUpSelector';
this.selector.innerHTML = '<div style="max-height:210px;" class="combobox"><ul id="apiPopUpList" class="dropdown-menu"></ul></div>'; this.selector.className = 'combobox';
this.selector.innerHTML = '<ul id="apiPopUpList" class="dropdown-menu"></ul>';
this.element.appendChild(this.selector); this.element.appendChild(this.selector);
this.selectorList = document.getElementById("apiPopUpList"); this.selectorList = document.getElementById("apiPopUpList");
...@@ -90,7 +91,7 @@ ...@@ -90,7 +91,7 @@
this._clearList(); this._clearList();
this.setPosition(cellRect); this.setPosition(cellRect);
if (!this.isVisible) { if (!this.isVisible) {
this.selectorStyle.display = "block"; this.selector.className = 'combobox open';
this.isVisible = true; this.isVisible = true;
} }
this.isFormula = isFormula; this.isFormula = isFormula;
...@@ -147,8 +148,8 @@ ...@@ -147,8 +148,8 @@
if (this.isVisible) { if (this.isVisible) {
// Чтобы не было непонятных анимаций // Чтобы не было непонятных анимаций
this.selectorListJQ.scrollTop(0); this.selectorListJQ.scrollTop(0);
this.selectorStyle.display = "none"; this.selector.className = 'combobox;
this.isVisible = false; this.isVisible = false;
this._clearList(); this._clearList();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment