Closed mkra closed 9 years ago
Can you post a gist which reproduces the problem?
Shariff runs before document.ready
, right after the <script>
-tag. In your example it is initialized a second time, which results in two rows of buttons.
Starting from 1.9.2 Shariff will make sure that the <div>
-element does not have any children on initialization.
Additionally there is a data
-attribute for setting the button orientation:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="shariff.complete.css">
</head>
<body>
<div class="shariff" data-orientation="vertical"></div>
<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="shariff.min.js"></script>
</body>
</html>
Shariff is meant to be configured using the data
-attributes. In most cases it is the easiest and fastest way to go.
When i include the new shariff/build/shariff.min.js v1.8.0 i get two sharling list in my shariff container.