3
$\begingroup$

This has been bugging me for years but because it doesn't effect performance I've never got around to asking. The problem below occurs for me in V8, 9, 10 with OS X 10.8, 10.9 and 10.10. I've tested the same code on Windows over the years and never observed any problems.

Here is a typical example in which a popups display different rendering.

enter image description here

What you will notice is that the rendering of say the first column of popups is consistent with the OS 10.10 however across some of the rows you will notice that the rendering harks back to, from memory, OS 10.6 and below.

As I said above it does not effect performance but it seems like a bug of sorts. Can anyone else 1) reproduce it (by creating say a grid of popups); and 2) know what the cause is and therefore have a possible fix?

Edit

Rendering the code in the comment by @SquareOne with V10.0.2 gives a grid with all popups the same but unfortunately they all render in the old 10.6 format rather than the Yosemite format.

enter image description here

The same with V9 on Yosemite:

enter image description here

Note that in all cases above Mathematica is rendering differently to the defaults for this operating system, just as it did with Mavericks. Here is what the OS popups look like in Yosemite:

enter image description here

Whereas the rendering done by Mathematica harks back to OS X from many years ago.

Edit #2

I've traced this to my default stylesheet. Specifically to the PopupMenu style with an option for FontSize.

Cell[StyleData["PopupMenu"],
some options,
 FontSize->11]

With this setting you get a mix of two different renderings (Yosemite and old OS X), and which popups are rendered differently is random.

enter image description here

Setting a font size for BaseStyle in the PopupMenuBox options at the cell level will switch off the problem.

Having said the above the inclusion of a font size in the PopupMenu style was an error because this was intended to control to menu font size and therefore should be in PopupMenuLabel style. Nevertheless the problem now seems to be that Mathematica has shown it is capable of rendering the correct Yosemite renderings (even if it is randomly under strange conditions) but by default is not doing that.

Edit 3

It seems no one here had any ideas about the origin of this problem so I am cross posting at Wolfram Community and hopefully someone from Wolfram will respond.

$\endgroup$
6
  • 1
    $\begingroup$ No rendering problem for me (v10.0.2, OSX 10.9.5) if I do for example :pmch[n_, len_] := FromCharacterCode /@ RandomInteger[{97, 122}, {n, len}] // PopupMenu[#[[1]], #] & ; Grid@Table[pmch[10, 12], {i, 1, 30}, {j, 1, 10}] ... But maybe it is too basic. Maybe you could post a simple code example which is problematic for you, so we could test it. $\endgroup$
    – SquareOne
    Jan 13, 2015 at 10:12
  • 1
    $\begingroup$ @SquareOne interestingly that code renders consistently on my Mac, but consistently wrong! All popups are rendered in the old Mac style rather than in the Yosemite style. $\endgroup$ Jan 13, 2015 at 20:03
  • $\begingroup$ I get the exact same rendering style as you. I also tried to add different options in PopupMenu (FieldSize, ImageSize, Alignment,Background) but still got no problem ... $\endgroup$
    – SquareOne
    Jan 13, 2015 at 20:37
  • $\begingroup$ I've actually never seen a correct Yosemite style popup menu in Mathematica. I only get the old ones. $\endgroup$
    – Szabolcs
    Jan 13, 2015 at 21:03
  • $\begingroup$ @Szabolcs both in Mavericks and Yosemite I have been able to get random correct OS renderings somehow by mistake! $\endgroup$ Jan 13, 2015 at 21:17

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.