mirror of
https://github.com/github/choosealicense.com
synced 2024-11-10 21:48:53 +01:00
Fix qtip viewport overflow.
The qtips under the permissons was overflowing left of the screen and only half of the text was readable. To activate position.adjust.method plugin, I added the viewport option. Also changed default adjust method to shift instead of flip.
This commit is contained in:
parent
2c161a8dd4
commit
44b4904814
@ -20,7 +20,7 @@ class Choosealicense
|
|||||||
qtip_position:
|
qtip_position:
|
||||||
my: "top center"
|
my: "top center"
|
||||||
at: "bottom center"
|
at: "bottom center"
|
||||||
|
viewport: $(window)
|
||||||
# Annotation rule types as defined in `_config.yml`
|
# Annotation rule types as defined in `_config.yml`
|
||||||
ruletypes:
|
ruletypes:
|
||||||
permissions: "Permission"
|
permissions: "Permission"
|
||||||
|
2
assets/vendor/qtip2/jquery.qtip.js
vendored
2
assets/vendor/qtip2/jquery.qtip.js
vendored
@ -1924,7 +1924,7 @@ QTIP.defaults = {
|
|||||||
mouse: TRUE,
|
mouse: TRUE,
|
||||||
scroll: TRUE,
|
scroll: TRUE,
|
||||||
resize: TRUE,
|
resize: TRUE,
|
||||||
method: 'flipinvert flipinvert'
|
method: 'shift shift'
|
||||||
},
|
},
|
||||||
effect: function(api, pos, viewport) {
|
effect: function(api, pos, viewport) {
|
||||||
$(this).animate(pos, {
|
$(this).animate(pos, {
|
||||||
|
2
assets/vendor/qtip2/jquery.qtip.min.js
vendored
2
assets/vendor/qtip2/jquery.qtip.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user