Does anyone know how I can detect if internet explorer
is in full screen/kiosk mode via javascript?
Probably not.
I have an issue where my dynamically positioned controls
are moved by 2px, but only when full screen
That sounds a lot like you javascript has a hard-coded 2px adjustment
that is attempting to compensate for the (default) 2px thickness of
the 'root element' borders. And in Kiosk mode there are no borders on
the root element so the adjustment is putting everything off.
Such a hard-coded adjustment never was a good idea as the 'root
element' borders could be subject to CSS and/or OS user configuration
so should have been dynamically acquired.
The 'root element' in IE is either document.body or
document.documentElement (depending on the rendering mode) and the
vertical or horizontal offsets that are 2px by default are the -
clientTop - and - clientLeft - properties of those elements.
Presumably in Kiosk mode the both of those properties of the 'root
element' will be zero, which could be the basis for a test (not a good
test as the values can be set to zero with CSS when not in Kiosk
mode), or just the source of the values that should be used in place
of a hard-code 2px.