Skip to content

ZEPPELIN-414 - Contain result inside paragraph#436

Closed
corneadoug wants to merge 1 commit intoapache:masterfrom
corneadoug:fix/ZEPPELIN-414
Closed

ZEPPELIN-414 - Contain result inside paragraph#436
corneadoug wants to merge 1 commit intoapache:masterfrom
corneadoug:fix/ZEPPELIN-414

Conversation

@corneadoug
Copy link
Copy Markdown
Contributor

Taking care of https://issues.apache.org/jira/browse/ZEPPELIN-414

I only applied it on HTML and ANGULAR result, because it is the only one that i saw breaking.
Didn't have any problem with other types, although I couldn't test with the response type IMG, any good example to test it?

Here is how it looks now:
screen shot 2015-11-16 at 11 54 47 am

@corneadoug
Copy link
Copy Markdown
Contributor Author

Ready for reviews, @Leemoonsoo @gauravkumar37 if you have some nice tests

@Leemoonsoo
Copy link
Copy Markdown
Member

I have a notebook that have result larger than paragraph width. Tested with this PR and i can see it is fixed.

Looks good to me.

@corneadoug
Copy link
Copy Markdown
Contributor Author

Merging if there is no more discussions

@asfgit asfgit closed this in 42d875d Nov 17, 2015
@gauravkumar37
Copy link
Copy Markdown

This PR wraps the HTML output but does not wrap sysout output.
The output of println(1 to 1000) is not wrapped.

Debugging the issue, I found that the class is not applied to _text divs. Was that the intended behavior or should I file a PR?

@corneadoug
Copy link
Copy Markdown
Contributor Author

_text don't need to be wrapped since it is text and we always show the full text.

screen shot 2015-12-14 at 11 34 40 am

This is what I get when running println(1 to 1000) and it is the full result sent by the server

@corneadoug corneadoug deleted the fix/ZEPPELIN-414 branch December 14, 2015 02:37
@gauravkumar37
Copy link
Copy Markdown

@corneadoug Ah I see, I guess it's a bug of cross browser compatibility.
I can see the full text in Chrome but in Firefox v42, the result shows in only 1 line and a horizontal scrollbar is shown in the full page. The results extend horizontally beyond the result div.
capture

@corneadoug
Copy link
Copy Markdown
Contributor Author

asfgit pushed a commit that referenced this pull request Dec 16, 2015
### What is this PR for?
It has been reported in #436 that the output was breaking in the case of ``_text`` container. (long line outside of container instead of multiple lines)
We then realized that it was happening only on Firefox

### What type of PR is it?
Bug Fix

### Todos
* [x] - Fix line break on Firefox
* [x] - Test on: Chrome, Firefox, Safari, Opera, IE10

### Is there a relevant Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-500

### How should this be tested?
You can run ``println(1 to 1000)`` and check the result on every web browsers

### Screenshots (if appropriate)

Before:
![cf086616-a245-11e5-9d22-1a46b6d6b8d9](https://cloud.githubusercontent.com/assets/710411/11774306/0d11bcc4-a277-11e5-8163-9f66493b187e.png)

After:
<img width="1353" alt="ce1bcd5e-a256-11e5-9744-a65c02c647c9" src="https://cloud.githubusercontent.com/assets/710411/11774310/13f75422-a277-11e5-9989-9e6bed184ef9.png">

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Damien CORNEAU <[email protected]>

Closes #531 from corneadoug/fix/ZEPPELIN-500 and squashes the following commits:

3b1ad0b [Damien CORNEAU] Remove CSS white-space: pre
r-kamath pushed a commit to r-kamath/zeppelin that referenced this pull request Dec 16, 2015
### What is this PR for?
It has been reported in apache#436 that the output was breaking in the case of ``_text`` container. (long line outside of container instead of multiple lines)
We then realized that it was happening only on Firefox

### What type of PR is it?
Bug Fix

### Todos
* [x] - Fix line break on Firefox
* [x] - Test on: Chrome, Firefox, Safari, Opera, IE10

### Is there a relevant Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-500

### How should this be tested?
You can run ``println(1 to 1000)`` and check the result on every web browsers

### Screenshots (if appropriate)

Before:
![cf086616-a245-11e5-9d22-1a46b6d6b8d9](https://cloud.githubusercontent.com/assets/710411/11774306/0d11bcc4-a277-11e5-8163-9f66493b187e.png)

After:
<img width="1353" alt="ce1bcd5e-a256-11e5-9744-a65c02c647c9" src="https://cloud.githubusercontent.com/assets/710411/11774310/13f75422-a277-11e5-9989-9e6bed184ef9.png">

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Damien CORNEAU <[email protected]>

Closes apache#531 from corneadoug/fix/ZEPPELIN-500 and squashes the following commits:

3b1ad0b [Damien CORNEAU] Remove CSS white-space: pre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants