Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tvgids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
tvgids
Commits
5e48f328
Commit
5e48f328
authored
11 years ago
by
Taddeus Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Added default image height/width ratio to prevent sudden shift of details window on image load
parent
1ce0515e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
guide.coffee
+1
-0
1 addition, 0 deletions
guide.coffee
style.sass
+6
-0
6 additions, 0 deletions
style.sass
with
7 additions
and
0 deletions
guide.coffee
+
1
−
0
View file @
5e48f328
...
...
@@ -227,6 +227,7 @@ ProgramDetailsView = Backbone.View.extend(
@
alignMiddle
()
# Align again after images are loaded
@
$
(
'.content img'
).
load
(
->
$
(
@
).
css
(
height
:
'auto'
))
@
$
(
'.content img'
).
load
(
=>
@
alignMiddle
())
)
else
...
...
This diff is collapsed.
Click to expand it.
style.sass
+
6
−
0
View file @
5e48f328
...
...
@@ -254,6 +254,7 @@ $loader-size: 66px
$details-width
:
500px
$details-initial-offset
:
150px
$img-ratio
:
310px
/
550px
.program-details
.content
position
:
absolute
...
...
@@ -272,6 +273,11 @@ $details-initial-offset: 150px
*
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
padding-left
:
15px
margin-top
:
1px
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment