Skip to content

Commit 4d03041

Browse files
committed
Merge remote-tracking branch 'adobe/master'
2 parents 2dfa9c0 + 881b648 commit 4d03041

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

build.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"version": "release-1.10-prerelease-1",
2+
"version": "release-1.10-prerelease-2",
33
"title" : "Brackets 1.10 Pre-release for community testing",
4-
"description" : "This is a Brackets 1.10 pre-release build. This release contains fix for custom font-family issues, support for Quick Docs for HTML documents and migration of Quick Docs to MDN for both HTML and CSS.",
4+
"description" : "This is a Brackets 1.10 pre-release build. This release adds native menus for Linux, Search History UI, pseudo selector and AtRules hints in CSS, CSS hints in style attribute value for HTML documents.",
55
"prerelease": true
66
}

src/LiveDevelopment/Agents/RemoteFunctions.js

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -431,19 +431,37 @@ function RemoteFunctions(config, remoteWSPort) {
431431
highlight.className = HIGHLIGHT_CLASSNAME;
432432

433433
var offset = _screenOffset(element);
434+
435+
var el = element,
436+
offsetLeft = 0,
437+
offsetTop = 0;
438+
439+
// Probably the easiest way to get elements position without including transform
440+
do {
441+
offsetLeft += el.offsetLeft;
442+
offsetTop += el.offsetTop;
443+
el = el.offsetParent;
444+
} while(el);
434445

435446
var stylesToSet = {
436-
"left": offset.left + "px",
437-
"top": offset.top + "px",
438-
"width": elementBounds.width + "px",
439-
"height": elementBounds.height + "px",
447+
"left": offsetLeft + "px",
448+
"top": offsetTop + "px",
449+
"width": innerWidth + "px",
450+
"height": innerHeight + "px",
440451
"z-index": 2000000,
441452
"margin": 0,
442453
"padding": 0,
443454
"position": "absolute",
444455
"pointer-events": "none",
445456
"box-shadow": "0 0 1px #fff",
446-
"box-sizing": "border-box"
457+
"box-sizing": elementStyling.getPropertyValue('box-sizing'),
458+
"border-right": elementStyling.getPropertyValue('border-right'),
459+
"border-left": elementStyling.getPropertyValue('border-left'),
460+
"border-top": elementStyling.getPropertyValue('border-top'),
461+
"border-bottom": elementStyling.getPropertyValue('border-bottom'),
462+
"transform": elementStyling.getPropertyValue('transform'),
463+
"transform-origin": elementStyling.getPropertyValue('transform-origin'),
464+
"border-color": config.remoteHighlight.borderColor
447465
};
448466

449467
var mergedStyles = Object.assign({}, stylesToSet, config.remoteHighlight.stylesToSet);

test/spec/ProjectManager-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ define(function (require, exports, module) {
5050

5151
// copy files to temp directory
5252
runs(function () {
53-
waitsForDone(SpecRunnerUtils.copy(testPath, tempDir), "copy temp files");
53+
waitsForDone(SpecRunnerUtils.copyPath(testPath, tempDir), "copy temp files");
5454
});
5555

5656
runs(function () {

0 commit comments

Comments
 (0)