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 @@ ...@@ -32,9 +32,8 @@
background: none repeat scroll 0 0 #66A5B5; background: none repeat scroll 0 0 #66A5B5;
font-family: arial; font-family: arial;
font-size: 14px; font-size: 14px;
overflow-y: auto;
opacity: 0.9; opacity: 0.9;
padding: 10px; padding: 22px 10px;
width: 300px; width: 300px;
} }
...@@ -48,6 +47,7 @@ ...@@ -48,6 +47,7 @@
.mentoring .questionnaire .feedback .tip-choice-group, .mentoring .questionnaire .feedback .tip-choice-group,
.mentoring .questionnaire .feedback .message-content { .mentoring .questionnaire .feedback .message-content {
position: relative; position: relative;
overflow-y: auto;
} }
.mentoring .questionnaire .choice-tips .close, .mentoring .questionnaire .choice-tips .close,
......
...@@ -20,15 +20,21 @@ function MessageView(element, mentoring) { ...@@ -20,15 +20,21 @@ function MessageView(element, mentoring) {
var data = $(tip).data(); var data = $(tip).data();
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);
} else { } else {
popupDOM.css('width', ''); popupDOM.css('width', '');
popupDOM.find('.tip-choice-group').css('width', '');
} }
if (data && data.height) { if (data && data.height) {
popupDOM.css('height', data.height); popupDOM.css('height', data.height);
} else { } else {
popupDOM.css('height', ''); 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'); var container = popupDOM.parent('.choice-tips-container');
if (container.length) { 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