mirror of
https://github.com/mistergibson/gxg-web-client.git
synced 2026-08-15 03:26:00 -07:00
test bump
This commit is contained in:
parent
f50308f9e8
commit
3d054f146a
1 changed files with 4 additions and 4 deletions
|
|
@ -364,7 +364,7 @@ module GxG
|
|||
if the_options[:top].is_a?(::String)
|
||||
@top = (bounds[:page_height] * (the_options[:top].gsub("%","").to_f / 100.0))
|
||||
else
|
||||
@top = (bounds[:page_height] * (the_options[:top] / 100.0))
|
||||
@top = (bounds[:page_height] * (the_options[:top].to_f / 100.0))
|
||||
end
|
||||
else
|
||||
@top = (the_options[:top] || ((`window.innerHeight`.to_i / 2) - 50))
|
||||
|
|
@ -373,7 +373,7 @@ module GxG
|
|||
if the_options[:left].is_a?(::String)
|
||||
@left = (bounds[:page_width] * (the_options[:left].gsub("%","").to_f / 100.0))
|
||||
else
|
||||
@left = (bounds[:page_width] * (the_options[:left] / 100.0))
|
||||
@left = (bounds[:page_width] * (the_options[:left].to_f / 100.0))
|
||||
end
|
||||
else
|
||||
@left = (the_options[:left] || ((`window.innerWidth`.to_i / 2) - 100))
|
||||
|
|
@ -382,7 +382,7 @@ module GxG
|
|||
if the_options[:right].is_a?(::String)
|
||||
@right = (bounds[:page_width] * (the_options[:right].gsub("%","").to_f / 100.0))
|
||||
else
|
||||
@right = (bounds[:page_width] * (the_options[:right] / 100.0))
|
||||
@right = (bounds[:page_width] * (the_options[:right].to_f / 100.0))
|
||||
end
|
||||
else
|
||||
@right = (the_options[:right] || ((`window.innerWidth`.to_i / 2) + 100))
|
||||
|
|
@ -391,7 +391,7 @@ module GxG
|
|||
if the_options[:bottom].is_a?(::String)
|
||||
@bottom = (bounds[:page_height] * (the_options[:bottom].gsub("%","").to_f / 100.0))
|
||||
else
|
||||
@bottom = (bounds[:page_height] * (the_options[:bottom] / 100.0))
|
||||
@bottom = (bounds[:page_height] * (the_options[:bottom].to_f / 100.0))
|
||||
end
|
||||
else
|
||||
@bottom = (the_options[:bottom] || ((`window.innerHeight`.to_i / 2) + 50))
|
||||
|
|
|
|||
Loading…
Reference in a new issue