Skip to content

Commit

Permalink
implements Dogfalo#6602
Browse files Browse the repository at this point in the history
  • Loading branch information
samschurter committed Nov 10, 2020
1 parent d0df3ce commit b041a4e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ module.exports = function(grunt) {
'transform-es2015-block-scoping',
'transform-es2015-classes',
'transform-es2015-template-literals',
'transform-es2015-object-super'
'transform-es2015-object-super',
'babel-plugin-transform-object-rest-spread'
]
},
bin: {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"engine": "node >= 6",
"devDependencies": {
"autoprefixer": "^7.1.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-es2015": "^6.24.1",
"grunt": "^1.0.1",
"grunt-babel": "^6.0.0",
Expand Down
12 changes: 7 additions & 5 deletions test/html/dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
<link rel="apple-touch-icon-precomposed" href="images/favicon/apple-touch-icon-152x152.png">
<meta name="msapplication-TileColor" content="#FFFFFF">
<meta name="msapplication-TileImage" content="images/favicon/mstile-144x144.png">
<link rel="icon" href="images/favicon/favicon-32x32.png" sizes="32x32">
<link rel="icon" href="../../images/favicon/favicon-32x32.png" sizes="32x32">

<!-- Android 5 Chrome Color -->
<meta name="theme-color" content="#EE6E73">

<link href="../../../bin/materialize.css" type="text/css" rel="stylesheet" media="screen,projection" />
<link href="../../bin/materialize.css" type="text/css" rel="stylesheet" media="screen,projection" />
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

<!-- <link href="css/ghpages-materialize.css" type="text/css" rel="stylesheet" media="screen,projection" />-->
<!-- <link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>-->
<link href="../../../css/prism.css" rel="stylesheet" />
<link href="../../css/prism.css" rel="stylesheet" />
</head>

<body>
Expand Down Expand Up @@ -621,7 +621,7 @@ <h2 style="width: 700px; height: 200px">Scrolling in absolute container</h2>

<!-- Scripts-->
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="../../../bin/materialize.js"></script>
<script src="../../bin/materialize.js"></script>
<!-- <script src="js/velocity.min.js"></script>-->
<!-- <script src="js/leanModal.js"></script>-->

Expand All @@ -630,7 +630,9 @@ <h2 style="width: 700px; height: 200px">Scrolling in absolute container</h2>
$('#test-1, #test-11, #test-17, #test-18, #button4').dropdown({hover: true});
$('#test-2, #test-3, #test-19, #test-20').dropdown({coverTrigger: false, hover: true});
$('#test-14').dropdown({alignment: 'right', constrainWidth: false});
$('#test-15, #test-24, #button5, #button6, #test-modal').dropdown();
$('#test-15, #test-24, #button5, #button6').dropdown();
$('#test-modal').dropdown({ container: document.body, coverTrigger: false });
// $('#test-modal').dropdown();
$('#test-16, #test-22').dropdown({coverTrigger: false});
$('#test-12').dropdown({constrainWidth: false, alignment: 'left'});
$('#test-13, #test-21').dropdown({constrainWidth: false, alignment: 'right'});
Expand Down

0 comments on commit b041a4e

Please sign in to comment.