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: cd402c21ec64c35a2a3a09ad26d35a8873a63a17
4
- data.tar.gz: ad3e206c8d0bdb1f4df97c175b0c94f3c86ffd7a
3
+ metadata.gz: e492c072e62d8a31c57031485baf7d0600415c71
4
+ data.tar.gz: d4520e1f4b7bf1addab597c719fdd3b631515c8f
5
5
  SHA512:
6
- metadata.gz: 01fa267d667e73588d98210efcc03c493c7d10193972f2221fc89693f3a8033a74472fff57cfa619ad94253c12be9f108cbea4e0f189ccda55c995affcfcafba
7
- data.tar.gz: 4bc2711144221a20f268a95cb5d74db32c6eb99494885db2792fc0ae36a838bed26ea9580cba2ad2eb65ee0ecf42b68b0a196c047b6f187f3a2e58f2220147fe
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
  /**
@@ -32,6 +32,8 @@ div.tabs_js {
32
32
  div.tab_content {
33
33
  padding: 5px 15px 15px 20px;
34
34
  color: #1A1A1A;
35
+ overflow-y: scroll;
36
+ overflow-x: hidden;
35
37
 
36
38
  ul {
37
39
  list-style: none;
@@ -1,3 +1,3 @@
1
1
  module C80MapFloors
2
- VERSION = '0.1.0.19'
2
+ VERSION = '0.1.0.20'
3
3
  end
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.19
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-23 00:00:00.000000000 Z
11
+ date: 2017-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler