GithubHelp home page GithubHelp logo

field size weirdness about dynamictextgroup HOT 6 OPEN

pixelninja avatar pixelninja commented on July 21, 2024
field size weirdness

from dynamictextgroup.

Comments (6)

a-ntoine avatar a-ntoine commented on July 21, 2024

Yes I have the same issue. Fields end up showing up one by line.

It happens quite often on the 2dev6. But I do find a way to fix it without going to the DB. It just take some time to resize field to their very minimum size.

from dynamictextgroup.

DavidOliver avatar DavidOliver commented on July 21, 2024

I also get this sometimes with 2.0dev6, but not always.

from dynamictextgroup.

fawx avatar fawx commented on July 21, 2024

this is still happening to me with 2.3.1 and dtg 3.0

from dynamictextgroup.

brockpetrie avatar brockpetrie commented on July 21, 2024

I'm not able to replicate this in any webkit browser. Could you guys let me know what you are using? Does this appear to be happening server-side or client-side?

Might be easier if we can peek at the schema object from the browser. Could you do the following and let me know if you see any funkiness happen, and if so, what you were doing when it happened:

Change line 65 in field.dynamictextgroup.php from
//$tblocks .= '<span>'.$this->get('schema').'</span>';
to
$tblocks .= '<span id="schemaspill">'.$this->get('schema').'</span>';

and then change line 97 in assets/dynamictextgroup.fieldeditor.js from
if (schematic[0]) { _f.val(JSON.stringify(schematic)); } else { _f.val(''); }
to
if (schematic[0]) { _f.val(JSON.stringify(schematic)); $('#schemaspill').text(JSON.stringify(schematic)); } else { _f.val(''); }

This will have JS spit out the field editor object so you can see what's going on.

from dynamictextgroup.

brockpetrie avatar brockpetrie commented on July 21, 2024

Also, if one of you manages to take a crack at this locally and finds a solution, I'll happily pull your fix.

from dynamictextgroup.

fawx avatar fawx commented on July 21, 2024

i'm having trouble replicating it as well. i fixed it by changing the width values in the database per mark lewis's suggestion, and now i can't seem to screw it up again.

from dynamictextgroup.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.