Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
problem-builder
Commits
dd92fd29
Commit
dd92fd29
authored
Apr 27, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17 from open-craft/oc-629-popup-css-issues
Fix two tip CSS issues
parents
d4a7b510
5135afbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
problem_builder/public/css/questionnaire.css
+3
-0
problem_builder/public/js/questionnaire.js
+5
-5
No files found.
problem_builder/public/css/questionnaire.css
View file @
dd92fd29
...
...
@@ -40,6 +40,7 @@
padding
:
22px
10px
10px
10px
;
width
:
300px
;
min-height
:
40px
;
max-height
:
180px
;
z-index
:
10000
;
}
...
...
@@ -54,6 +55,8 @@
.mentoring
.questionnaire
.feedback
.message-content
{
position
:
relative
;
overflow-y
:
auto
;
line-height
:
normal
;
max-height
:
180px
;
}
.mentoring
.questionnaire
.choice-tips
.close
,
...
...
problem_builder/public/js/questionnaire.js
View file @
dd92fd29
...
...
@@ -18,24 +18,24 @@ function MessageView(element, mentoring) {
// Set the width/height
var
tip
=
$
(
'.tip'
,
popupDOM
)[
0
];
var
data
=
$
(
tip
).
data
();
var
innerDOM
=
popupDOM
.
find
(
'.tip-choice-group'
);
if
(
data
&&
data
.
width
)
{
popupDOM
.
css
(
'width'
,
data
.
width
);
popupDOM
.
find
(
'.tip-choice-group'
)
.
css
(
'width'
,
data
.
width
);
innerDOM
.
css
(
'width'
,
data
.
width
);
}
else
{
popupDOM
.
css
(
'width'
,
''
);
popupDOM
.
find
(
'.tip-choice-group'
)
.
css
(
'width'
,
''
);
innerDOM
.
css
(
'width'
,
''
);
}
if
(
data
&&
data
.
height
)
{
popupDOM
.
css
(
'height'
,
data
.
height
);
popupDOM
.
css
(
'maxHeight'
,
data
.
height
);
innerDOM
.
css
(
'maxHeight'
,
data
.
height
);
}
else
{
popupDOM
.
css
(
'height'
,
''
);
popupDOM
.
css
(
'maxHeight'
,
''
);
innerDOM
.
css
(
'maxHeight'
,
''
);
}
// .tip-choice-group should always be the same height as the popup
// for scrolling to work properly.
popupDOM
.
find
(
'.tip-choice-group'
).
height
(
popupDOM
.
height
());
var
container
=
popupDOM
.
parent
(
'.choice-tips-container'
);
if
(
container
.
length
)
{
...
...
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