Skip to content

Commit 8ff384b

Browse files
committed
bah
1 parent 71a43e0 commit 8ff384b

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎v3/js/opt-frontend.js‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,18 @@ function experimentalPopUpSyntaxErrorSurvey() {
241241

242242
var bub = new SyntaxErrorSurveyBubble(myVisualizer, codLineId);
243243

244+
// if pyCodeOutputDiv is narrower than the current line, then
245+
// adjust the x position of the pop-up bubble accordingly to be
246+
// flush with the right of pyCodeOutputDiv
247+
var pcodWidth = myVisualizer.domRoot.find('#pyCodeOutputDiv').width();
248+
var codLineWidth = myVisualizer.domRoot.find('#' + codLineId).parent().width(); // get enclosing 'tr'
249+
var adjustX = 0; // default
250+
251+
// actually nix this for now to keep things simple ...
252+
//if (pcodWidth < codLineWidth) {
253+
// adjustX = pcodWidth - codLineWidth; // should be negative!
254+
//}
255+
244256
// destroy then create a new tip:
245257
bub.destroyQTip();
246258
$(bub.hashID).qtip($.extend({}, qtipShared, {
@@ -250,7 +262,7 @@ function experimentalPopUpSyntaxErrorSurvey() {
250262
my: bub.my,
251263
at: bub.at,
252264
adjust: {
253-
x: -6,
265+
x: adjustX,
254266
},
255267
effect: null, // disable all cutesy animations
256268
},

0 commit comments

Comments
 (0)