Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unforce RTL output display #5039

Merged
merged 1 commit into from
Jun 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions notebook/static/notebook/js/outputarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,8 @@ define([

OutputArea.prototype.create_output_subarea = function(md, classes, mime) {
var subarea = $('<div/>').addClass('output_subarea').addClass(classes);
// Unforce RTL
subarea.attr("dir","auto");
if (_get_metadata_key(md, 'isolated', mime)) {
// Create an iframe to isolate the subarea from the rest of the
// document
Expand Down Expand Up @@ -462,6 +464,8 @@ define([
// the prompt area and the proper indentation.
toinsert = this.create_output_area();
var subarea = $('<div/>').addClass('output_subarea');
// Unforce RTL
subarea.attr("dir","auto");
toinsert.append(subarea);
this._append_javascript_error(err, subarea);
this.element.append(toinsert);
Expand Down Expand Up @@ -589,6 +593,8 @@ define([
var that = this;
var toinsert = this.create_output_area();
var subarea = $('<div/>').addClass('output_subarea output_unrecognized');
// Unforce RTL
subarea.attr("dir","auto");
toinsert.append(subarea);
subarea.append(
$("<a>")
Expand Down Expand Up @@ -947,6 +953,7 @@ define([
})
)
)
.attr("dir","auto")
);

this.element.append(area);
Expand Down