Commit dd92fd29 by Braden MacDonald

Merge pull request #17 from open-craft/oc-629-popup-css-issues

Fix two tip CSS issues
parents d4a7b510 5135afbc
......@@ -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,
......
......@@ -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) {
......
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