I've got a few different workarounds like that I could use, but to be honest I'm never really happy if I'm just avoiding a problem without understanding what's going on. I'm really looking for an explanation of why this would happen. At the moment I'm assuming it's a weird browser bug, but I can't shake the feeling that it's me that's doing something daft.
David Scotson
Posts made by David Scotson
My theme is set to have a minimum and maximum width that are reasonably close together, so it's sort of a fixed-width design.
I'm getting reports of issues on netbooks, projectors and other devices with a small number of horizontal pixels. It would appear that if you embed things via the object tag, like Moodle sometimes does for PDFs, Powerpoints, LTI integrations etc. then it prevents the browser from adding scrollbars to the page. This catches me out as my theme has a minimum width, and at the current setting this sometimes places the scrollbar of the inner embedded object just off the screen. If you know what you're doing you can use the arrow keys to scroll to the right, but if you're not aware of the issue it seems as if the inner scroll bar is just missing entirely, as the bottom scrollbar that would normally hint that there is more page that you can't see, isn't present.
I've tried Googling for some insight, but all the results are from people trying to embed an object and get rid of the scrollbars around it, rather than people who's scrollbars have gone missing.
Anyone got any pointers?
I'm getting reports of issues on netbooks, projectors and other devices with a small number of horizontal pixels. It would appear that if you embed things via the object tag, like Moodle sometimes does for PDFs, Powerpoints, LTI integrations etc. then it prevents the browser from adding scrollbars to the page. This catches me out as my theme has a minimum width, and at the current setting this sometimes places the scrollbar of the inner embedded object just off the screen. If you know what you're doing you can use the arrow keys to scroll to the right, but if you're not aware of the issue it seems as if the inner scroll bar is just missing entirely, as the bottom scrollbar that would normally hint that there is more page that you can't see, isn't present.
I've tried Googling for some insight, but all the results are from people trying to embed an object and get rid of the scrollbars around it, rather than people who's scrollbars have gone missing.
Anyone got any pointers?
Not even had a chance to look at the javascript stuff yet. Been busy converting everything to use LESS, so that it's easier to keep up with Bootstrap changes and use alternate themes from places like Bootswatch (http://bootswatch.com/#gallery) and playing with renderers after getting some pointers from Stuart Lamour's work. After you get over the initial learning hump it's quite powerful, and allowed me to radically simplify my CSS and remove a bunch of workarounds, though sadly it's not used everywhere in Moodle, so there's still a few dodgy hacks remaining to cover everything.
My latest work is here https://github.com/ds125v/moodle-bootstrap/blob/gu23/theme/bootstrap/renderers.php so feel free to take anything useful and I'll happily add in your stuff too. I see you've done stuff that I didn't bother with since our institution doesn't use that feature, so working together makes sense to cover all the bases.
I've got some deadlines at work but I'm hoping to merge in all the things I've done for that and re-announce my progress later this week.
My latest work is here https://github.com/ds125v/moodle-bootstrap/blob/gu23/theme/bootstrap/renderers.php so feel free to take anything useful and I'll happily add in your stuff too. I see you've done stuff that I didn't bother with since our institution doesn't use that feature, so working together makes sense to cover all the bases.
I've got some deadlines at work but I'm hoping to merge in all the things I've done for that and re-announce my progress later this week.
That wiki page talks about "components", but I think that's a different kind of component from those referred to by outputcomponents.php. The wiki is talking about overriding the renderers for modules and plugins, which are all in files called renderer.php and are the equivalent of the core renderer which is called "outputrenderers.php". But there's also a core file called "outputcomponents.php" which seems to have some overlap with the functionality of outputrenderers.php as it seems to define some of the HTML used in common components across Moodle.