stable-rails 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stable-rails (0.0.1)
4
+ stable-rails (0.0.6)
5
5
  haml-rails
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- actionpack (3.2.10)
11
- activemodel (= 3.2.10)
12
- activesupport (= 3.2.10)
10
+ actionpack (3.2.11)
11
+ activemodel (= 3.2.11)
12
+ activesupport (= 3.2.11)
13
13
  builder (~> 3.0.0)
14
14
  erubis (~> 2.7.0)
15
15
  journey (~> 1.0.4)
@@ -17,43 +17,44 @@ GEM
17
17
  rack-cache (~> 1.2)
18
18
  rack-test (~> 0.6.1)
19
19
  sprockets (~> 2.2.1)
20
- activemodel (3.2.10)
21
- activesupport (= 3.2.10)
20
+ activemodel (3.2.11)
21
+ activesupport (= 3.2.11)
22
22
  builder (~> 3.0.0)
23
- activesupport (3.2.10)
23
+ activesupport (3.2.11)
24
24
  i18n (~> 0.6)
25
25
  multi_json (~> 1.0)
26
26
  builder (3.0.4)
27
27
  erubis (2.7.0)
28
- haml (3.1.7)
29
- haml-rails (0.3.5)
28
+ haml (4.0.3)
29
+ tilt
30
+ haml-rails (0.4)
30
31
  actionpack (>= 3.1, < 4.1)
31
32
  activesupport (>= 3.1, < 4.1)
32
- haml (~> 3.1)
33
+ haml (>= 3.1, < 4.1)
33
34
  railties (>= 3.1, < 4.1)
34
- hike (1.2.1)
35
- i18n (0.6.1)
35
+ hike (1.2.3)
36
+ i18n (0.6.4)
36
37
  journey (1.0.4)
37
- json (1.7.6)
38
- multi_json (1.5.0)
38
+ json (1.8.0)
39
+ multi_json (1.7.7)
39
40
  rack (1.4.1)
40
41
  rack-cache (1.2)
41
42
  rack (>= 0.4)
42
43
  rack-protection (1.3.2)
43
44
  rack
44
- rack-ssl (1.3.2)
45
+ rack-ssl (1.3.3)
45
46
  rack
46
47
  rack-test (0.6.2)
47
48
  rack (>= 1.0)
48
- railties (3.2.10)
49
- actionpack (= 3.2.10)
50
- activesupport (= 3.2.10)
49
+ railties (3.2.11)
50
+ actionpack (= 3.2.11)
51
+ activesupport (= 3.2.11)
51
52
  rack-ssl (~> 1.3.2)
52
53
  rake (>= 0.8.7)
53
54
  rdoc (~> 3.4)
54
55
  thor (>= 0.14.6, < 2.0)
55
- rake (10.0.3)
56
- rdoc (3.12)
56
+ rake (10.1.0)
57
+ rdoc (3.12.2)
57
58
  json (~> 1.4)
58
59
  sass (3.2.5)
59
60
  sinatra (1.3.3)
@@ -65,7 +66,7 @@ GEM
65
66
  multi_json (~> 1.0)
66
67
  rack (~> 1.0)
67
68
  tilt (~> 1.1, != 1.3.0)
68
- thor (0.16.0)
69
+ thor (0.18.1)
69
70
  tilt (1.3.3)
70
71
 
71
72
  PLATFORMS
@@ -16,14 +16,18 @@
16
16
  var top_left_cell = $('.c-left .t-header', stable);
17
17
 
18
18
  $('.scroll-vertical div', stable).height($('.c-right', stable).height());
19
- $('.scroll-horizontal div', stable).width($('.c-right', stable).width()+$('.c-left', stable).width()+15);
20
-
21
- stable.css('padding-bottom', top_left_cell.outerHeight());
22
- stable.css('padding-right', top_left_cell.outerWidth()+15);
19
+ $('.scroll-horizontal div', stable).width($('.c-right', stable).width()+$('.c-left', stable).width());
23
20
 
24
21
  stable.addClass('on');
25
22
 
26
23
  if (!initialized) {
24
+ var fix_table_size = function() {
25
+ $('.c-right', stable).width(stable.width() - top_left_cell.width());
26
+ $('.t-body', stable).height(stable.height() - top_left_cell.height());
27
+ }
28
+ fix_table_size();
29
+ $(window).resize(fix_table_size);
30
+
27
31
  // Para el Scroll VERTICAL
28
32
  $('.scroll-vertical', stable).scroll(function(){
29
33
  $('.vertical', stable).scrollTop($(this).scrollTop());
@@ -2,6 +2,15 @@
2
2
  .table-scroll {
3
3
  position:relative;
4
4
  margin-bottom:30px;
5
+ -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
6
+ -moz-box-sizing: border-box; /* Firefox, other Gecko */
7
+ box-sizing: border-box; /* Opera/IE 8+ */
8
+
9
+ div {
10
+ -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
11
+ -moz-box-sizing: border-box; /* Firefox, other Gecko */
12
+ box-sizing: border-box; /* Opera/IE 8+ */
13
+ }
5
14
  }
6
15
  .table-scroll .scroll-vertical { display:none }
7
16
  .table-scroll .scroll-horizontal { display:none }
@@ -12,17 +21,17 @@
12
21
  margin-bottom:30px;
13
22
  }
14
23
 
15
- .table-scroll.on .mask { height:inherit; width:100%; overflow:hidden; white-space:nowrap; font-size:0; padding-bottom:inherit; padding-right:inherit }
24
+ .table-scroll.on .mask { height:inherit; width:100%; overflow:hidden; white-space:nowrap; font-size:0; }
16
25
  .table-scroll .mask { white-space:nowrap; font-size:0; }
17
26
 
18
- .table-scroll.on .scrollbars { position:relative; width:100%; height:inherit; padding-bottom:inherit; padding-right:inherit }
27
+ .table-scroll.on .scrollbars { position:relative; width:100%; height:inherit; }
19
28
  .table-scroll.on .scroll-vertical { position:absolute; height:100%; width:18px; right:-2px; z-index:100; overflow-y:scroll; display:block }
20
29
  .table-scroll.on .scroll-horizontal { position:absolute; height:18px; width:100%; left:0px; bottom:-17px; z-index:100; overflow-x:scroll; display:block }
21
30
  .table-scroll.on .scroll-horizontal div { height:1px }
22
31
 
23
32
 
24
33
  /* -- ESTRUCTURA GRAL DE LA TABLA-- */
25
- .c-left, .c-right { display:inline-block; vertical-align:top; height:inherit }
34
+ .c-left, .c-right { display:inline-block; vertical-align:top; }
26
35
  .c-right { width:inherit }
27
36
 
28
37
  .t-body { height:inherit; overflow:hidden }
@@ -12,6 +12,5 @@
12
12
  border-bottom:1px solid #ededed;
13
13
  font-size:11pt;
14
14
  line-height:11pt;
15
- height:20px;
16
- padding: 5px;
15
+ padding: 5px;
17
16
  }
@@ -1,5 +1,5 @@
1
1
  module Stable
2
2
  module Rails
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: