From deb6221206b68e58a02f4d9a0aab4581b8cfdc40 2015-02-11 01:52:50 From: Thomas Kluyver Date: 2015-02-11 01:52:50 Subject: [PATCH] Merge pull request #7734 from minrk/inner-cell-ff scrolling workaround for Firefox --- diff --git a/IPython/html/static/notebook/less/cell.less b/IPython/html/static/notebook/less/cell.less index afa0c94..d44d092 100644 --- a/IPython/html/static/notebook/less/cell.less +++ b/IPython/html/static/notebook/less/cell.less @@ -54,6 +54,14 @@ div.inner_cell { .box-flex1(); } +@-moz-document url-prefix() { + div.inner_cell { + // hack around FF bug causing cell to expand when lines are long + // instead of scrolling + overflow-x: hidden; + } +} + /* input_area and input_prompt must match in top border and margin for alignment */ div.input_area { border: 1px solid @light_border_color; diff --git a/IPython/html/static/style/ipython.min.css b/IPython/html/static/style/ipython.min.css index 04def6d..370e60e 100644 --- a/IPython/html/static/style/ipython.min.css +++ b/IPython/html/static/style/ipython.min.css @@ -420,6 +420,11 @@ div.inner_cell { /* Modern browsers */ flex: 1; } +@-moz-document url-prefix() { + div.inner_cell { + overflow-x: hidden; + } +} /* input_area and input_prompt must match in top border and margin for alignment */ div.input_area { border: 1px solid #cfcfcf; diff --git a/IPython/html/static/style/style.min.css b/IPython/html/static/style/style.min.css index 6be255d..4628464 100644 --- a/IPython/html/static/style/style.min.css +++ b/IPython/html/static/style/style.min.css @@ -9196,6 +9196,11 @@ div.inner_cell { /* Modern browsers */ flex: 1; } +@-moz-document url-prefix() { + div.inner_cell { + overflow-x: hidden; + } +} /* input_area and input_prompt must match in top border and margin for alignment */ div.input_area { border: 1px solid #cfcfcf;