• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.4.3 Latest
Buy Hosting
libraxssL

libraxss

@libraxss
About
Posts
1
Topics
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

    How to change default size of dialog used for adding new topic?
  • libraxssL libraxss

    @metalkramp size of new topic composer
    depends on function resize.reposition

    lib/composer/resize.js

        resize.reposition = function(postContainer) {
       	console.info('[resize.js] reposition called');
       	var ratio = getSavedRatio(); // get size ratio here
       
       	if (ratio >= 1 - snapMargin) {
       	    ratio = 1;
       	    postContainer.addClass('maximized');
       	}
            resizeIt(postContainer, ratio);
        };
    

    getSavedRatio:

        function getSavedRatio() {
            return localStorage.getItem('composer:resizeRatio') || 0.5;
        }
    

    try setting it before resize.reposition called, like:

    
        localStorage.setItem('composer:resizeRatio', 1);
    
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.