Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tvgids
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
tvgids
Commits
5e48f328
Commit
5e48f328
authored
Feb 10, 2014
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added default image height/width ratio to prevent sudden shift of details window on image load
parent
1ce0515e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
guide.coffee
guide.coffee
+1
-0
style.sass
style.sass
+6
-0
No files found.
guide.coffee
View file @
5e48f328
...
@@ -227,6 +227,7 @@ ProgramDetailsView = Backbone.View.extend(
...
@@ -227,6 +227,7 @@ ProgramDetailsView = Backbone.View.extend(
@
alignMiddle
()
@
alignMiddle
()
# Align again after images are loaded
# Align again after images are loaded
@
$
(
'.content img'
).
load
(
->
$
(
@
).
css
(
height
:
'auto'
))
@
$
(
'.content img'
).
load
(
=>
@
alignMiddle
())
@
$
(
'.content img'
).
load
(
=>
@
alignMiddle
())
)
)
else
else
...
...
style.sass
View file @
5e48f328
...
@@ -254,6 +254,7 @@ $loader-size: 66px
...
@@ -254,6 +254,7 @@ $loader-size: 66px
$details-width
:
500px
$details-width
:
500px
$details-initial-offset
:
150px
$details-initial-offset
:
150px
$img-ratio
:
310px
/
550px
.program-details
.content
.program-details
.content
position
:
absolute
position
:
absolute
...
@@ -272,6 +273,11 @@ $details-initial-offset: 150px
...
@@ -272,6 +273,11 @@ $details-initial-offset: 150px
*
*
max-width
:
$details-width
max-width
:
$details-width
// Set default image height, to be overwritten with 'auto' when the image
// is loaded. This prevents a shift of the details window on image load.
img
height
:
$details-width
*
$img-ratio
.properties
.properties
padding-left
:
15px
padding-left
:
15px
margin-top
:
1px
margin-top
:
1px
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment