Commit 18243ce2 by Braden MacDonald

Fwd port fix to OC-545 (Issues in scrollbars in Feedback pop up for large data)

parent 1b66d3cd
......@@ -32,9 +32,8 @@
background: none repeat scroll 0 0 #66A5B5;
font-family: arial;
font-size: 14px;
overflow-y: auto;
opacity: 0.9;
padding: 10px;
padding: 22px 10px;
width: 300px;
}
......@@ -48,6 +47,7 @@
.mentoring .questionnaire .feedback .tip-choice-group,
.mentoring .questionnaire .feedback .message-content {
position: relative;
overflow-y: auto;
}
.mentoring .questionnaire .choice-tips .close,
......
......@@ -20,15 +20,21 @@ function MessageView(element, mentoring) {
var data = $(tip).data();
if (data && data.width) {
popupDOM.css('width', data.width);
popupDOM.find('.tip-choice-group').css('width', data.width);
} else {
popupDOM.css('width', '');
popupDOM.find('.tip-choice-group').css('width', '');
}
if (data && data.height) {
popupDOM.css('height', data.height);
} else {
popupDOM.css('height', '');
popupDOM.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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment