Skip to content

Commit

Permalink
Urgent fix for the broken dropdown in version 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Atanas Atanasov committed Mar 19, 2018
1 parent d6a9b01 commit 000b619
Show file tree
Hide file tree
Showing 28 changed files with 30 additions and 33 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gijgo",
"version": "1.9.0",
"version": "1.9.1",
"description": "Gijgo is a set of free open source javascript controls distributed under MIT License with built-in support for Bootstrap and Material Design",
"main": [
"./dist/combined/js/gijgo.js",
Expand Down
5 changes: 2 additions & 3 deletions dist/combined/js/gijgo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo JavaScript Library v1.9.0
* Gijgo JavaScript Library v1.9.1
* http://gijgo.com/
*
* Copyright 2014, 2017 gijgo.com
Expand Down Expand Up @@ -13112,9 +13112,7 @@ gj.dropdown.methods = {

if (data.width) {
$parent.css('width', data.width);
$list.css('width', data.width);
$presenter.css('width', data.width);
//$display.css('width', $presenter.outerWidth(true) - $expander.outerWidth(true));
}

if (data.fontSize) {
Expand All @@ -13130,6 +13128,7 @@ gj.dropdown.methods = {
var data = $dropdown.data(),
$expander = $dropdown.parent().find('[role="expander"]'),
$presenter = $dropdown.parent().find('[role="presenter"]');
$list.css('width', gj.core.width($presenter[0]));
$list.show();
gj.dropdown.methods.setListPosition($presenter[0], $list[0], data);
$expander.html(data.icons.dropup);
Expand Down
2 changes: 1 addition & 1 deletion dist/combined/js/gijgo.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/modular/js/checkbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Checkbox v1.9.0
* Gijgo Checkbox v1.9.1
* http://gijgo.com/checkbox
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion dist/modular/js/core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo JavaScript Library v1.9.0
* Gijgo JavaScript Library v1.9.1
* http://gijgo.com/
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion dist/modular/js/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo DatePicker v1.8.2
* Gijgo DatePicker v1.9.0
* http://gijgo.com/datepicker
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion dist/modular/js/dialog.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Dialog v1.9.0
* Gijgo Dialog v1.9.1
* http://gijgo.com/dialog
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion dist/modular/js/draggable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Draggable v1.9.0
* Gijgo Draggable v1.9.1
* http://gijgo.com/draggable
*
* Copyright 2014, 2017 gijgo.com
Expand Down
5 changes: 2 additions & 3 deletions dist/modular/js/dropdown.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo DropDown v1.9.0
* Gijgo DropDown v1.9.1
* http://gijgo.com/dropdown
*
* Copyright 2014, 2017 gijgo.com
Expand Down Expand Up @@ -241,9 +241,7 @@ gj.dropdown.methods = {

if (data.width) {
$parent.css('width', data.width);
$list.css('width', data.width);
$presenter.css('width', data.width);
//$display.css('width', $presenter.outerWidth(true) - $expander.outerWidth(true));
}

if (data.fontSize) {
Expand All @@ -259,6 +257,7 @@ gj.dropdown.methods = {
var data = $dropdown.data(),
$expander = $dropdown.parent().find('[role="expander"]'),
$presenter = $dropdown.parent().find('[role="presenter"]');
$list.css('width', gj.core.width($presenter[0]));
$list.show();
gj.dropdown.methods.setListPosition($presenter[0], $list[0], data);
$expander.html(data.icons.dropup);
Expand Down
2 changes: 1 addition & 1 deletion dist/modular/js/dropdown.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/modular/js/droppable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Droppable v1.9.0
* Gijgo Droppable v1.9.1
* http://gijgo.com/droppable
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion dist/modular/js/editor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Editor v1.9.0
* Gijgo Editor v1.9.1
* http://gijgo.com/editor
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion dist/modular/js/grid.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Grid v1.9.0
* Gijgo Grid v1.9.1
* http://gijgo.com/grid
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion dist/modular/js/timepicker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo TimePicker v1.9.0
* Gijgo TimePicker v1.9.1
* http://gijgo.com/timepicker
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion dist/modular/js/tree.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Tree v1.9.0
* Gijgo Tree v1.9.1
* http://gijgo.com/tree
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gijgo",
"version": "1.9.0",
"version": "1.9.1",
"description": "Gijgo is a set of free open source javascript controls distributed under MIT License. All widgets are high performance, built on top of the jQuery JavaScript Library and with built-in support for Bootstrap and jQuery UI. They are designed to saves you time and scales with your development process.",
"main": "js/gijgo.js",
"homepage": "http://gijgo.com/",
Expand Down
2 changes: 1 addition & 1 deletion src/checkbox/js/header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Checkbox v1.9.0
* Gijgo Checkbox v1.9.1
* http://gijgo.com/checkbox
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion src/datepicker/js/header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo DatePicker v1.9.0
* Gijgo DatePicker v1.9.1
* http://gijgo.com/datepicker
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion src/dialog/js/header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Dialog v1.9.0
* Gijgo Dialog v1.9.1
* http://gijgo.com/dialog
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion src/draggable/js/header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Draggable v1.9.0
* Gijgo Draggable v1.9.1
* http://gijgo.com/draggable
*
* Copyright 2014, 2017 gijgo.com
Expand Down
3 changes: 1 addition & 2 deletions src/dropdown/js/dropdown.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,7 @@ gj.dropdown.methods = {

if (data.width) {
$parent.css('width', data.width);
$list.css('width', data.width);
$presenter.css('width', data.width);
//$display.css('width', $presenter.outerWidth(true) - $expander.outerWidth(true));
}

if (data.fontSize) {
Expand All @@ -457,6 +455,7 @@ gj.dropdown.methods = {
var data = $dropdown.data(),
$expander = $dropdown.parent().find('[role="expander"]'),
$presenter = $dropdown.parent().find('[role="presenter"]');
$list.css('width', gj.core.width($presenter[0]));
$list.show();
gj.dropdown.methods.setListPosition($presenter[0], $list[0], data);
$expander.html(data.icons.dropup);
Expand Down
2 changes: 1 addition & 1 deletion src/dropdown/js/header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo DropDown v1.9.0
* Gijgo DropDown v1.9.1
* http://gijgo.com/dropdown
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion src/droppable/js/header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Droppable v1.9.0
* Gijgo Droppable v1.9.1
* http://gijgo.com/droppable
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion src/editor/js/header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Editor v1.9.0
* Gijgo Editor v1.9.1
* http://gijgo.com/editor
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion src/grid/js/header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Grid v1.9.0
* Gijgo Grid v1.9.1
* http://gijgo.com/grid
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion src/header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo JavaScript Library v1.9.0
* Gijgo JavaScript Library v1.9.1
* http://gijgo.com/
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion src/timepicker/js/header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo TimePicker v1.9.0
* Gijgo TimePicker v1.9.1
* http://gijgo.com/timepicker
*
* Copyright 2014, 2017 gijgo.com
Expand Down
2 changes: 1 addition & 1 deletion src/tree/js/header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Gijgo Tree v1.9.0
* Gijgo Tree v1.9.1
* http://gijgo.com/tree
*
* Copyright 2014, 2017 gijgo.com
Expand Down

0 comments on commit 000b619

Please sign in to comment.