0
$\begingroup$

Essentially what the title says - Consider the following example:

ExpressionCell[Pane[
  200!,
  ImageSize -> {200, 200},
  Scrollbars -> {False, Automatic}
  ]]

enter image description here

When trying to scroll around in the pane using the mouse wheel, the whole notebook is scrolled through instead. Manually grabbing the scrollbar with the cursor to scroll still works. Also, removing the ExpressionCell returns the behavior to normal.

Is there any option or similar that I am missing? Scrolling using the scrollbar is rather cumbersome… Unfortunately, I need the ExpressionCell to be there, so I am in need for another workaround.

$\endgroup$
9
  • 3
    $\begingroup$ If you absolutely need it in an inline cell, then no. That should only happen with this example thanks to the Shift+Enter evaluation. If you try your example with an " // CellPrint" appended to the end, it should behave as desired. $\endgroup$
    – ihojnicki
    Jan 27, 2020 at 0:50
  • 2
    $\begingroup$ @ihojnicki no inline cell scrolling? What’s behind that restriction? $\endgroup$
    – b3m2a1
    Jan 27, 2020 at 0:54
  • $\begingroup$ @ihojnicki thanks for the definitive answer once again. Unfortunately, I think I do need the inline cell, but I guess I'll have to recheck for alternatives... (I am using the inline cell as storage for TaggingRules in order to have front-end state variables that can be dynamically created. As far as I am aware, this is not doable with DynamicModule variables, since the front-end can't reliably interact with list variables, right? Using an inline cell instead of the output cell itself allows easy copying of the whole thing and enables multiple such expressions in a single output cell) $\endgroup$
    – Lukas Lang
    Jan 27, 2020 at 7:44
  • $\begingroup$ @b3m2a1, you can scroll it using the mouse wheel once the inline cell has been activated. I haven't gone digging through the code to see why that is the case, but it could simply be a bug. $\endgroup$
    – ihojnicki
    Jan 27, 2020 at 14:03
  • $\begingroup$ @LukasLang, list variables? I think I would need to see a small example to comment further. $\endgroup$
    – ihojnicki
    Jan 27, 2020 at 14:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.