6
$\begingroup$

Consider this simple code

Slider[0.5, ImageSize -> {Automatic, 50}]

We get

enter image description here

But if we add another option

Slider[0.5, ImageSize -> {Automatic, 50}, Appearance -> "DownArrow"]

The slider shrinks.

enter image description here

Is this a bug or the way the option works?

I use Mathematica 10.2 on Windows 10 64bit.

$\endgroup$
3
  • $\begingroup$ You should add your operating system, because on Linux this does not appear at all. My sliders don't even look blue. See here $\endgroup$
    – halirutan
    Commented Aug 21, 2015 at 3:03
  • $\begingroup$ Windows 10 64bit $\endgroup$
    – Deco
    Commented Aug 21, 2015 at 3:06
  • $\begingroup$ Well, you could have edited your question yourself :-) I included it. $\endgroup$
    – halirutan
    Commented Aug 21, 2015 at 3:07

1 Answer 1

2
$\begingroup$

This is not an answer. I can't give one as I have no access to Windows. However, it describes an experiment that I think might cast some light on how each of your options is affecting the rendering of a slider.

When I run into a problem with the space allocated to a control, I find it useful to experiment with variations that have a frame drawn around each control. This gives me a better visual assessment of the problem. So to investigate your problem, I built a grid of framed sliders with the relevant option variations.

Grid[
  Map[
    Column[{Row[#, ", "], Framed @ Slider[0.5, Sequence @@ #]}] &,
    {{{}, 
     {Appearance -> "DownArrow"}}, 
     {{ImageSize -> {Automatic, 50}}, 
      {Appearance -> "DownArrow", ImageSize -> {Automatic, 50}}}},
    {2}],
  Alignment -> {{Right, Left}, {Bottom, Top}},
  Spacings -> {1, 2}]

I am running V10.2 on OS X, and on my system the above code gives

sliders

I conclude that

  1. Changing the appearance of the slider thumb has only a slight effect on the height of the thumb and, thus, on the height of the allocated space.
  2. The ImageSize option has no effect on the height of the slider thumb

These conclusions only apply to OS X and maybe only the specific version of OS X I am running. I suggest that you run my experiment or a similar one on your system and see if your results differ.

$\endgroup$
3
  • $\begingroup$ On Windows m_goldberg's experiment shows that ImageSize has a profound effect on the Slider without DownArrow and no effect on the Slider with DownArrow $\endgroup$ Commented Aug 22, 2015 at 13:38
  • $\begingroup$ @JackLaVigne. I'm glad you tried it out on Windows. Now the question is: is it a Window's bug or a Window's feature? $\endgroup$
    – m_goldberg
    Commented Aug 22, 2015 at 13:55
  • $\begingroup$ I start to believe this is a bug $\endgroup$
    – Deco
    Commented Aug 25, 2015 at 3:00

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.