Hi @hazymat, Here's an example ui-template that I figured out to fix the button issue. As an example I'm using a button to start fullscreen on the browser.
<style>
#go-fullscreen-btn {
height: 100%;
border-style: unset;
}
.btn-parent {
padding: 0 !important;
}
</style>
<md-button id="go-fullscreen-btn" ng-click="send({payload:action('go fullscreen')})" type="button">Go Fullscreen
</md-button>
<script>
fsElem = document.documentElement;
theParentElem = document.getElementById("go-fullscreen-btn").parentNode
theParentElem.classList.add('btn-parent')
this.scope.action = function(params) {
console.log("params received is: ",params)
if (fsElem.requestFullscreen) {
fsElem.requestFullscreen();
} else if (elem.mozRequestFullScreen) { /* Firefox */
fsElem.mozRequestFullScreen();
} else if (elem.webkitRequestFullscreen) { /* Chrome, Safari and Opera */
fsElem.webkitRequestFullscreen();
} else if (elem.msRequestFullscreen) { /* IE/Edge */
fsElem.msRequestFullscreen();
}
// In fullscreen. Now hide the button.
document.getElementById("go-fullscreen-btn").classList.add('ng-hide');
return {payload:"Fullscreen is active."}
}
</script>
Thanks for your post. In the end I got it working and I think it was the introduction of !important that resolved my issue.
Side note: I may use that "fullscreen" idea, for a wall controller I have installed. I really like it!
I'll post my CSS here as well, although I suspect it will be easier for most people to figure this out themselves, than to go through and weed-out what they need from all the CSS here: