Skip to content

Commit

Permalink
(hotfix) tweak rich text editor panel scroll thresholds
Browse files Browse the repository at this point in the history
This is a hacky fix for a demo...a better system needs to be developed for
managing the fixed position rich text editor panel!
  • Loading branch information
goldpbear committed Aug 17, 2017
1 parent 51637ad commit 4762d01
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/base/static/js/views/place-detail-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var RichTextEditorView = require("mapseed-rich-text-editor-view");

var SubmissionCollection = require("../models/submission-collection.js");

const TOOLBAR_FIXED_TOP_THRESHOLD = 235;
const TOOLBAR_FIXED_TOP_THRESHOLD = 1660;

module.exports = Backbone.View.extend({
events: {
Expand Down
2 changes: 1 addition & 1 deletion src/base/static/js/views/place-form-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ module.exports = Backbone.View.extend({
// the top of the content container.
if (this.$qlToolbar.length > 0) {
$("#content article").on("scroll", function() {
if (this.scrollTop < 520) {
if (this.scrollTop < 1060) {
self.$qlToolbar.removeClass("fixed-top no-edit-toolbar");
} else if (self.$qlToolbar.offset().top < 75) {
self.$qlToolbar.addClass("fixed-top no-edit-toolbar");
Expand Down
4 changes: 2 additions & 2 deletions src/base/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<link rel="stylesheet" href="https://cdn.quilljs.com/1.1.4/quill.snow.css">
<link rel="stylesheet" href="{{ STATIC_URL }}css/default.css?deployed_at={{ settings.LAST_DEPLOY_DATE|urlencode:'' }}">
{% else %}
<link rel="stylesheet" href="{{ STATIC_URL }}dist/bundle.css?ver=0.7.6.4"></link>
<link rel="stylesheet" href="{{ STATIC_URL }}dist/bundle.css?ver=0.7.6.5"></link>
{% endif %}

<!-- Flavor's Custom Stylesheet -->
Expand Down Expand Up @@ -281,7 +281,7 @@ <h3>
}
</script>

<script src="{{STATIC_URL}}dist/bundle.js?ver=0.7.6.4"></script>
<script src="{{STATIC_URL}}dist/bundle.js?ver=0.7.6.5"></script>
<script src="{{API_ROOT}}users/current?format=jsonp&callback=bootstrapCurrentUser"></script>
<script src="{{API_ROOT}}utils/session-key?format=jsonp&callback=setApiSessionCookie"></script>

Expand Down

0 comments on commit 4762d01

Please sign in to comment.