On 1/23/14 9:21 AM, kcrisman wrote:


On Thursday, January 23, 2014 9:31:57 AM UTC-5, Ken Levasseur wrote:

    Hello everyone.  I've started to embed cells into web pages and it's
    really easy, but one thing I can't seem to figure out is how to
    control the height of a cell.   There are several cases (e. g., in
    http://faculty.uml.edu/klevasseur/ads2/sage_cell/sage_cell_graphs.html
    <http://faculty.uml.edu/klevasseur/ads2/sage_cell/sage_cell_graphs.html>)
    where I expect students to make only minor changes in parameters of
    an expression and I'd like to make the page more compact by avoiding
    the default of around 12 lines.

    Is there an option that reduces that height?


I've had EXACTLY the same issue.  Here is what Jason G. recommended.
  Remember, all of these Sage cells are really Codemirror instances.  I
think this syntax should still work - the cell is still under rapid
development.

<style type="text/css">
.sagecell .CodeMirror {
      height: auto;
}

</style>


I also add the following for scrolling, but that will depend on the use case.


.sagecell .CodeMirror-scroll {
   height: auto;
   overflow-y: hidden;
   overflow-x: auto;
}

Unfortunately, there isn't much documentation on things not specifically new to 
the cell.


We fixed this back in June, but it appears that the fix no longer works. I just pushed this change, which fixes the issue again. It'll go live soon.

https://github.com/sagemath/sagecell/commit/ee61b44b50cdea2b287870e59b5c572d72ca285f

Thanks,

Jason

--
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-edu.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to