JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<script src="http://www.jeasyui.com/easyui/datagrid-groupview.js"></script>
<div id="win" class="easyui-window" title="My Window" style="font-size:25px;padding:5px;width:300px;height:200px;left:0;bottom:0"
data-options="iconCls:'icon-save',modal:true">
Please make me appear on right bottom
</div>
JavaScript
(function($){
$.extend($.fn.window.methods, {
moveTo: function(jq, param){
return jq.each(function(){
var win = $(this).window('window');
var width = win.outerWidth();
var height = win.outerHeight();
var left = undefined;
var top = undefined;
if (param.indexOf('left') >= 0){
left = $(document).scrollLeft();
}
if (param.indexOf('right') >= 0){
left = $(window).outerWidth() - width + $(document).scrollLeft();
}
if (param.indexOf('top') >= 0){
top = $(document).scrollTop();
}
if (param.indexOf('bottom') >= 0){
top = $(window).outerHeight() - height + $(document).scrollTop();
}
$(this).window('move', {
left: left,
top: top
});
})
}
});
})(jQuery);
$('#win').window('moveTo', 'right bottom');