Skip to content

Commit

Permalink
v1.1.20 : Fix issues with the position of picker when is open
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisMazel committed Aug 13, 2018
1 parent 8960432 commit 8ea6cfa
Show file tree
Hide file tree
Showing 23 changed files with 30 additions and 22 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>vue-ctk-date-time-picker</title><link rel=stylesheet href=./assets/main.css><link href=./static/css/app.08d726dffb5baecfe31edade6eb46d63.css rel=stylesheet></head><body><div id=app></div><script src=/build/build.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.88b4d2f1b6949b36de49.js></script><script type=text/javascript src=./static/js/app.bcc28b3136a0603355ca.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>vue-ctk-date-time-picker</title><link rel=stylesheet href=./assets/main.css><link href=./static/css/app.e06b72e2fbf158d6e5510e7a529723e2.css rel=stylesheet></head><body><div id=app></div><script src=/build/build.js></script><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.88b4d2f1b6949b36de49.js></script><script type=text/javascript src=./static/js/app.b92df41e8cac0b017c12.js></script></body></html>
2 changes: 0 additions & 2 deletions demo/static/css/app.08d726dffb5baecfe31edade6eb46d63.css

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions demo/static/css/app.e06b72e2fbf158d6e5510e7a529723e2.css

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions demo/static/js/app.b92df41e8cac0b017c12.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion demo/static/js/app.bcc28b3136a0603355ca.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion demo/static/js/manifest.3ad1d5771e9b13dbdad2.js.map

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

2 changes: 1 addition & 1 deletion dist/umd/vue-ctk-date-time-picker.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/umd/vue-ctk-date-time-picker.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/umd/vue-ctk-date-time-picker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/umd/vue-ctk-date-time-picker.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-ctk-date-time-picker.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-ctk-date-time-picker.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-ctk-date-time-picker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/vue-ctk-date-time-picker.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-ctk-date-time-picker",
"version": "1.1.19",
"version": "1.1.20",
"description": "A vue component for select date & time (by Chronotruck)",
"author": "Louis Mazel <[email protected]>",
"main": "dist/vue-ctk-date-time-picker.min.js",
Expand Down
1 change: 1 addition & 0 deletions src/vue-ctk-date-time-picker/_subs/CtkDatePickerAgenda.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ export default {
position: absolute;
z-index: 5;
border-radius: 4px;
overflow: hidden;
background: #FFF;
-webkit-box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
Expand Down
9 changes: 8 additions & 1 deletion src/vue-ctk-date-time-picker/vue-ctk-date-time-picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,14 @@ export default {
}
const rect = this.$refs.parent.getBoundingClientRect()
const windowHeight = window.innerHeight
const datePickerHeight = 300
let datePickerHeight = 428
if (!this.enableButtonValidate) {
datePickerHeight = datePickerHeight - 46
}
if (this.withoutHeader) {
datePickerHeight = datePickerHeight - 65
}
console.log('datePickerHeight', datePickerHeight)
if (((windowHeight - (rect.top + rect.height)) > datePickerHeight) || ((windowHeight - rect.top) > windowHeight / 2 + rect.height)) {
this.agendaPosition = 'top'
} else {
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion styleguide/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Vue Ctk Date Time Picker Style Guide</title></head><body><div id="rsg-root"></div><script src="build/bundle.d32a826d.js"></script></body></html>
<!DOCTYPE html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Vue Ctk Date Time Picker Style Guide</title></head><body><div id="rsg-root"></div><script src="build/bundle.bfb8cc49.js"></script></body></html>

0 comments on commit 8ea6cfa

Please sign in to comment.