Skip to content

Adding sticky bezels and window maximize on snap to web interface#195

Merged
rdumusc merged 4 commits intoBlueBrain:masterfrom
ppodhajski:feature/stickybezel
Oct 17, 2017
Merged

Adding sticky bezels and window maximize on snap to web interface#195
rdumusc merged 4 commits intoBlueBrain:masterfrom
ppodhajski:feature/stickybezel

Conversation

@ppodhajski
Copy link
Copy Markdown
Contributor

No description provided.

@ppodhajski ppodhajski force-pushed the feature/stickybezel branch 2 times, most recently from 6ee4689 to d8de951 Compare October 6, 2017 13:52
Copy link
Copy Markdown

@rdumusc rdumusc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just a few cleanups to do!

}

function isBezelVisible(){
return ($('.screen').is(':visible'));
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the class be called '.bezel' then ?

Comment thread tide/master/resources/js/tide.js Outdated
function isAnyWindowDragged()
{
return ($(".ui-draggable-dragging").length == 1 );

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style

Comment thread tide/master/resources/js/tide.js Outdated
}
}
$(".bezel").css("grid-column-gap", bezelWidth).css("grid-row-gap", bezelHeight).hide();
$(".screen").css("outline-width", bezelWidth).css("outline-height", bezelHeight)//.hide();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rm commented code

Comment thread tide/master/resources/js/tide.js Outdated

for (var j = 0; j < totalDisplaysPerScreen; j++) {
var bezels = [{name: 'N', type: 'horizontal'},{name: 'S', type: 'horizontal'},
{name: 'E', type: 'vertical'},{name: 'W', type: 'vertical'},];
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alignment?

Comment thread tide/master/resources/js/tide.js Outdated
tile.width = ui.size.width
}
var params = {"id": tile.uuid, "w": tile.width, "h": tile.height, "centered": false};
var params = { "id": tile.uuid, "w": tile.width, "h": tile.height, "centered": false };
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why changed? style not consistent with the lines above...

Comment thread tide/master/resources/js/tide.js Outdated
var wallMargin = (window.innerWidth - (wallWidth * zoomScale)) / 2;
var wall = $("#wall");
wall.css({transform: 'scale(' + zoomScale + ')'});
wall.css({ transform: 'scale(' + zoomScale + ')' });
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here. If this is the new style, then please use it consistently (cf. lines 992 - 1008)

Comment thread tide/master/resources/js/tide.js Outdated
$div.css("top", centerV);
$div.css("left", left);
}
// Allign a window exceeding a screen to the left
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo Allign

Comment thread doc/Changelog.md Outdated

* [195](https://github.com/BlueBrain/Tide/pull/195):
New features in html interface:
- Dragged window is snapped to a bezel.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is -> can be

Comment thread doc/Changelog.md Outdated
* [195](https://github.com/BlueBrain/Tide/pull/195):
New features in html interface:
- Dragged window is snapped to a bezel.
- Dragged window will get maximized to the screen size when hovering a bezel.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will get -> can be

@rdumusc rdumusc merged commit b95d165 into BlueBrain:master Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants