fixed selection box

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8959 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-08-30 12:18:43 +00:00
parent 2e2b5ff74e
commit 0406e395cd
2 changed files with 9 additions and 4 deletions

View file

@ -98,7 +98,6 @@ var FaceOff = {
var filter = '#xe .widgetOutput, #xe .extension, #body, #header, #footer, #toolbar, #propertyDialog, #faceoffSelector, .overlay';
var target = $(event.target);
var selection = target.parents(filter).add(target);
if (selection.is('#toolbar, #propertyDialog, #faceoffSelector, .overlay')) return;
if (selection.is(filter)) {
@ -461,8 +460,8 @@ var FaceOff = {
left : pos_cur.left - pos_sel.left,
top : pos_cur.top - pos_sel.top
})
.width(cur.attr('offsetWidth'))
.height(cur.attr('offsetHeight'));
.width(cur.outerWidth())
.height(cur.outerHeight());
if (cur.is('#body, #header, #footer')) {
$('#for-block').show();
@ -739,7 +738,7 @@ var PropertyDialog = {
});
// font
// font
this.target.css({
'font-family' : $('#font-family').val(),
'color' : $('#color').val()