Since the update to version 38, 39, 40
my pop-ins that used to be aligned to the right through the html.textDir shared property on the main system/view, are now aligned to the left.
adding a local constant <direction> seems to have no control over this.
the alignment of views and other display elements i use, did not change.
For best results, use the Firefox browser..