Skip to content

Commit

Permalink
0.2.1, check changelog - this closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico Kaltofen committed Jul 3, 2018
1 parent 8e650df commit 05d4992
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
@@ -1,16 +1,21 @@
# Changelog
All notable changes to this project will be documented in this file.

## [0.2.1] - 2018-03-22

### Fixed
* correctly size modal window responsive

## [0.2.0] - 2018-03-22

#### Changed
### Changed
* removed haste_plus dependencies

## [0.1.1] - 2018-03-22

#### Fixed
### Fixed
* missing argument in callback service definition

## [0.1] - 2018-03-21

Refactored fieldpalette module to bundle structure.
Refactored fieldpalette module to bundle structure.
10 changes: 5 additions & 5 deletions src/Resources/public/js/fieldpalette-be.js
Expand Up @@ -70,11 +70,11 @@ FieldPaletteBackend.makeFieldPaletteListSortable = function (ul) {
* @param {object} options An optional options object
*/
FieldPaletteBackend.openModalIframe = function (options) {
var opt = options || {};
var max = (window.getSize().y - 180).toInt();
if (!opt.height || opt.height > max) {
opt.height = max;
}
var opt = options || {},
maxWidth = (window.getSize().x - 20).toInt(),
maxHeight = (window.getSize().y - 137).toInt();
if (!opt.width || opt.width > maxWidth) opt.width = Math.min(maxWidth, 900);
if (!opt.height || opt.height > maxHeight) opt.height = maxHeight;
var M = new SimpleModal({
'keyEsc': false, // see https://github.com/terminal42/contao-notification_center/issues/99
'width': opt.width,
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/js/fieldpalette-be.min.js

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

0 comments on commit 05d4992

Please sign in to comment.