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
5135afbc
Commit
5135afbc
authored
Apr 22, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix two tip CSS issues
parent
c3a2af39
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 @
5135afbc
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
padding
:
22px
10px
10px
10px
;
padding
:
22px
10px
10px
10px
;
width
:
300px
;
width
:
300px
;
min-height
:
40px
;
min-height
:
40px
;
max-height
:
180px
;
z-index
:
10000
;
z-index
:
10000
;
}
}
...
@@ -54,6 +55,8 @@
...
@@ -54,6 +55,8 @@
.mentoring
.questionnaire
.feedback
.message-content
{
.mentoring
.questionnaire
.feedback
.message-content
{
position
:
relative
;
position
:
relative
;
overflow-y
:
auto
;
overflow-y
:
auto
;
line-height
:
normal
;
max-height
:
180px
;
}
}
.mentoring
.questionnaire
.choice-tips
.close
,
.mentoring
.questionnaire
.choice-tips
.close
,
...
...
problem_builder/public/js/questionnaire.js
View file @
5135afbc
...
@@ -18,24 +18,24 @@ function MessageView(element, mentoring) {
...
@@ -18,24 +18,24 @@ function MessageView(element, mentoring) {
// Set the width/height
// Set the width/height
var
tip
=
$
(
'.tip'
,
popupDOM
)[
0
];
var
tip
=
$
(
'.tip'
,
popupDOM
)[
0
];
var
data
=
$
(
tip
).
data
();
var
data
=
$
(
tip
).
data
();
var
innerDOM
=
popupDOM
.
find
(
'.tip-choice-group'
);
if
(
data
&&
data
.
width
)
{
if
(
data
&&
data
.
width
)
{
popupDOM
.
css
(
'width'
,
data
.
width
);
popupDOM
.
css
(
'width'
,
data
.
width
);
popupDOM
.
find
(
'.tip-choice-group'
)
.
css
(
'width'
,
data
.
width
);
innerDOM
.
css
(
'width'
,
data
.
width
);
}
else
{
}
else
{
popupDOM
.
css
(
'width'
,
''
);
popupDOM
.
css
(
'width'
,
''
);
popupDOM
.
find
(
'.tip-choice-group'
)
.
css
(
'width'
,
''
);
innerDOM
.
css
(
'width'
,
''
);
}
}
if
(
data
&&
data
.
height
)
{
if
(
data
&&
data
.
height
)
{
popupDOM
.
css
(
'height'
,
data
.
height
);
popupDOM
.
css
(
'height'
,
data
.
height
);
popupDOM
.
css
(
'maxHeight'
,
data
.
height
);
popupDOM
.
css
(
'maxHeight'
,
data
.
height
);
innerDOM
.
css
(
'maxHeight'
,
data
.
height
);
}
else
{
}
else
{
popupDOM
.
css
(
'height'
,
''
);
popupDOM
.
css
(
'height'
,
''
);
popupDOM
.
css
(
'maxHeight'
,
''
);
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'
);
var
container
=
popupDOM
.
parent
(
'.choice-tips-container'
);
if
(
container
.
length
)
{
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