Skip to content

Commit 6b83c9b

Browse files
authoredJun 3, 2020
unforce rtl output display (#5039)
1 parent 2ac0ff3 commit 6b83c9b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎notebook/static/notebook/js/outputarea.js

+7
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,8 @@ define([
389389

390390
OutputArea.prototype.create_output_subarea = function(md, classes, mime) {
391391
var subarea = $('<div/>').addClass('output_subarea').addClass(classes);
392+
// Unforce RTL
393+
subarea.attr("dir","auto");
392394
if (_get_metadata_key(md, 'isolated', mime)) {
393395
// Create an iframe to isolate the subarea from the rest of the
394396
// document
@@ -462,6 +464,8 @@ define([
462464
// the prompt area and the proper indentation.
463465
toinsert = this.create_output_area();
464466
var subarea = $('<div/>').addClass('output_subarea');
467+
// Unforce RTL
468+
subarea.attr("dir","auto");
465469
toinsert.append(subarea);
466470
this._append_javascript_error(err, subarea);
467471
this.element.append(toinsert);
@@ -589,6 +593,8 @@ define([
589593
var that = this;
590594
var toinsert = this.create_output_area();
591595
var subarea = $('<div/>').addClass('output_subarea output_unrecognized');
596+
// Unforce RTL
597+
subarea.attr("dir","auto");
592598
toinsert.append(subarea);
593599
subarea.append(
594600
$("<a>")
@@ -947,6 +953,7 @@ define([
947953
})
948954
)
949955
)
956+
.attr("dir","auto")
950957
);
951958

952959
this.element.append(area);

0 commit comments

Comments
 (0)
Please sign in to comment.