c80_map_floors 0.1.0.19 → 0.1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e492c072e62d8a31c57031485baf7d0600415c71
|
4
|
+
data.tar.gz: d4520e1f4b7bf1addab597c719fdd3b631515c8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 301ddb8e39c6ec1f570065d5ccb2ed7641aceb0d60385042bd7b178a67d2c82bd8c4a6c44951bd4041769be946c5ecb71e8e416e38ce88a0cfc688e3e3fc54bb
|
7
|
+
data.tar.gz: 8ebab83a13c8da444bd9e163039b38bd2682afaabe76933e377b724c9e461b0ec2730462e80eb6e66e58c0f9531df6271c61f16041b95d9ad29979268bb2b904
|
@@ -318,6 +318,10 @@ var InitMap = function (params) {
|
|
318
318
|
var hh = _$address_p.outerHeight(true);
|
319
319
|
_$address_p.css('margin-top',(window_height - hh - 200)+"px");
|
320
320
|
|
321
|
+
// 20170327: подгоняем по высоте блок с текстом внутри инфо-панели
|
322
|
+
// т.к. список арендаторов и площадей может быть очень большим
|
323
|
+
self.building_info_klass.set_max_height_of_tab_content(window_height - 220);
|
324
|
+
|
321
325
|
// ------------------------------------------------------------------------------------------------------------------------
|
322
326
|
|
323
327
|
// если пользователь еще не взаимодействовал с картой или вне здания\площади
|
@@ -48,7 +48,7 @@ function BuildingInfo(options) {
|
|
48
48
|
//-[ public ]-----------------------------------------------------------------------------------------------------------------------
|
49
49
|
|
50
50
|
/**
|
51
|
-
* Получить данные для
|
51
|
+
* Получить данные для отображения, распарсить их и отобразить в инфо-окне.
|
52
52
|
*
|
53
53
|
* @param map_building_json - Это данные от C80MapFloors::MapBuilding, метод my_as_json5
|
54
54
|
*/
|
@@ -61,6 +61,7 @@ function BuildingInfo(options) {
|
|
61
61
|
this._removeAll();
|
62
62
|
this._parseData();
|
63
63
|
this._updateView();
|
64
|
+
this.set_max_height_of_tab_content();
|
64
65
|
|
65
66
|
};
|
66
67
|
|
@@ -120,6 +121,19 @@ function BuildingInfo(options) {
|
|
120
121
|
}
|
121
122
|
};
|
122
123
|
|
124
|
+
/**
|
125
|
+
* 20170327: подгоняем по высоте блок с текстом внутри инфо-панели,
|
126
|
+
* т.к. список арендаторов и площадей может быть очень большим
|
127
|
+
*
|
128
|
+
* Вызывается при resize окна.
|
129
|
+
* Вызывается в конце this.SetData.
|
130
|
+
* @param max_height
|
131
|
+
*/
|
132
|
+
this.set_max_height_of_tab_content = function (max_height) {
|
133
|
+
console.log('<set_max_height_of_tab_content>');
|
134
|
+
$('div.tab_content').css('max-height',max_height+'px');
|
135
|
+
};
|
136
|
+
|
123
137
|
//------------------------------------------------------------------------------------------------------------------------
|
124
138
|
|
125
139
|
/**
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: c80_map_floors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- C80609A
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|