Skip to content

Commit

Permalink
nothing importabt
Browse files Browse the repository at this point in the history
  • Loading branch information
yahyaKacem committed Jul 15, 2013
1 parent 684cf1c commit f6ff3d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
flexibleGridDirectives.handle = function(tplsUrl, $window){
var linker = function(iScope, iElement, iAttrs){
var __slice = [].slice;
var options = {
borderMin: 0
};
var throttle = function(delay, fn) {
var throttled = false;
return function() {
Expand All @@ -22,20 +19,17 @@ flexibleGridDirectives.handle = function(tplsUrl, $window){
iScope.trackMove = function($event) {
$event.preventDefault();
var target = iElement.parent();
var borderMin = iAttrs.min || 0;
var classes = iElement[0].className.split(' ');
for(i = 0; i < classes.length; i++){
if(classes[i] === 'bottom' || classes[i] === 'top'){
var handle = 8;
var coord = "pageY";
var offset = "offsetY"; // make the options module
var borderMax = iAttrs.max || iElement.parent().parent().height();
var initialSize = iElement.parent().height();
}else if(classes[i] === 'left' || classes[i] === 'right'){
var handle = 0;
var coord = "pageX";
var offset = "offsetX";
var borderMax = iAttrs.max || iElement.parent().parent().width();
var initialSize = iElement.parent().width();
}
if(classes[i] === 'top' || classes[i] === 'left'){
Expand All @@ -54,7 +48,7 @@ flexibleGridDirectives.handle = function(tplsUrl, $window){
return iScope.$apply(function() {
if(iAttrs.type === "free"){
var boundries = {
max: parseInt(iAttrs.max) || $window.outerWidth,
max: parseInt(iAttrs.max) - 8 || $window.outerWidth,
min: parseInt(iAttrs.min) || 0
};
}else{
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/flexiblegrid/scss/_handle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
position: absolute;
top: 0;
right: 0;
// border: 2.5px outset #aaa;
border: 2.5px outset $handleMovingColor;
@include box-sizing(border-box);
background-color: $handleBgColor;
&.left {
Expand Down

0 comments on commit f6ff3d3

Please sign in to comment.