Yes, if one is using a lot of buttons, they will wrap on mobile devices. It's not that I want them to scale depending on the number of buttons, I just want to change the size of the buttons in small screen mode because they are too large.
(I expected them to be smaller in small screen mode is all. I appreciate that I didn't explain myself very well.)
I've used the following code to try and solve this.
var jb = new juicebox({
containerId: '@Model.Container'
});
jb.onInitComplete = function (e) {
var mode = jb.getScreenMode();
if (mode == 'SMALL') {
$(".jb-bb-button").css("font-size", "16px");
}
};
The problem with this is, the buttons initially display at the preset size of 20px before resizing. Is there a better way of applying the resize so this doesn't happen?